![]() I need to edit a svn property on a file after a commit happened. ![]() To ignore a directory and the files under it, use -prune see an example in. Therefor I'd like to use a post-commit script. runs the specified command on the selected files, but the command line is. On command line I would use this: svn propedit "export" file:///svn/repositoryName/path/to/file/in/repository/example.ex I have a property called export with a value set to test when I commit a file called example.exĪfter my commit succeeded I have a post-commit hook, that does some smart things (that doesn't matter to my question) and after finishing it needs to change (or delete) the property export to a new value like succeeded. I can change it to whatever I want and save and quit the file with vi commands like :wq This will open my system editor vi and I will see the value test. svnsubcommands recognize the following options: svn Options -acceptACTION Specifies an action for automatic conflict resolution, disabling the interactive prompts which ask the user how to handle each conflict as it is noticed. Subversion gives back a message like this "svn-prop.tmp" 1L, 10C written How to find different commands available in the SVN tool E:techrocksz>svn help usage: svn options args Subversion command-line client, version 1.6.12. #SVN PROPEDIT COMMAND LINE EXAMPLE HOW TO# Set new value for property 'export' on file:///svn/repositoryName/path/to/file/in/repository/example.ex' E:\techrocksz>svn help usage: svn options args Subversion command-line client, version 1.6.12. If the sandbox is version 1.6, for example, it remains a version 1.6 sandbox. Type 'svn help ' for help on a specific subcommand. Command-line SVN integration communicates with any Subversion (SVN) client. Type 'svn -version' to see the program version and RA modules or 'svn -version -quiet' to see just the version number. For example with vi on the command line: vi /.subversion/config. Most subcommands take the file and/or directory arguments, recursing on the directories. In command line: svn propset svn:keywords Author Date Id Rev URL folder/file location. But as I've said, I need that in a post-commit script, where I can't control vi (or am I wrong?). So Subversion gives me the possibility to add a file to the command propedit. Set PROPNAME to PROPVAL on files, directories, or revisions. The file contains just the new value succeeded. The first example creates a versioned, local property change in the working copy. The new command should look like this: svn propedit "export" file:///svn/repositoryName/path/to/file/in/repository/example.ex -file /path/to/propertyValueFile/propValue.fileĪnd here's the problem: the last command doesn't work. Again vi opens and I need to change my value manually. The first example creates a versioned, local property change in the working copy, and the second. #SVN PROPEDIT COMMAND LINE EXAMPLE HOW TO#.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |