Tue 13 May 2008
Versioning Symlinks with Subversion on Linux
Posted by admin under linux , subversion , ubuntu[2] Comments
Since Version 1.1 subversion can deal with symlinks (see Does Subversion support symlinks?). There are only a few remarks in the manual Versioned Properties – svn:special and ‘svn add’ command.
Actually all handling of the symbolic link is up to the client. Cause in creation of symlinks the used paths do matter and subversion stores the link target in simple text file with the appropriate relative or absolute path you should choose the way you create your symlinks with care.
Example – Creating a symlink in your working copy:
$ mkdir A
$ ln -s A link
$ svn add --force .
A A
A link
$ svn commit -m "link there"
the contents of the link file in svn:
link A
Example – change symlink target
$ svn del --force link
$ svn commit -m "no link"
$ mkdir B
$ ln -s B link
$ svn add --force .
$ svn commit -m "link changed to B"
the contents of the link file in svn:
link B
June 8th, 2010 at 5:24 pm
I’ve been following your blog for 5 days now and I should tell you I am starting to like your post. and now how I can get news update from your blog?
February 27th, 2012 at 12:38 pm
Thanks for the hint on how to add symlinks to svn repo. I was using your first example and it worked for me.