Subversion

From ConShell

Jump to: navigation, search

Subversion is version control system gaining popularity as a replacement for CVS.

Property setting

If you want to interpolate tags (keywords?) like $Id$ and $URL$ the following should be used in your ~/.subversion/config file

[miscellany]
enable-auto-props = yes

[auto-props]
* = svn:keywords=Author ID URL Date Rev

To retroactively set these on a file committed prior...

svn propset svn:keywords "Id URL" <filename>
svn commit

Hooks

commit hooks are handy for catching errors and doing other strange things.

For example, when using subversion with Puppet it is really nice to have a pre-commit hook which runs puppet --parseonly on the files being committed to validate they have the correct syntax.

Another example is using cvsspam in a post-commit to have a nicely-formatted audit trail for developers and/or administrators.

List of repo

Example of using svn list using svn+ssh method.

$ svn list svn+ssh://svnhome/home/mdf/svn
credentia/
infradns/
jasmine/
mdf-kb/
mdf-website/
scavenge/
seabug.org/
smtp-survey/
Personal tools


check web page