Showing posts with label svn. Show all posts
Showing posts with label svn. Show all posts

How to Mirror a SVN Repository

http://wordaligned.org/articles/how-to-mirror-a-subversion-repository

http://journal.paul.querna.org/articles/2006/09/14/using-svnsync/

svn undo last change

Suppose we want to undo the last ci (revision 100) back to 99 for the changes in current directory.
svn merge --revision 100:99 .
or
svn merge -c -100

svn ignore a file

The property is set on a directory. Below I created a file abc.txt and set svn:ignore on it:
$ touch abc.txt
$ svn propset svn:ignore abc.txt .
property 'svn:ignore' set on '.'
$ svn propget svn:ignore .
abc.txt

$ svn status --no-ignore
I abc.txt
M .


Add with an editor:
svn propedit svn:ignore .

svn 1.4 compression

SVN 1.4 has compression support (use ldd to see if it is linked with libz). If use svn+ssh, enable ssh compression actually slows down the svn in my tests.
ldd /usr/bin/svn
...
libz.so.1 => /lib64/libz.so.1 (0x0000000020802000)
...