[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

howto replace a file with a symbolic link (without obstruct error)

From: anton <antonxx_at_gmx.de>
Date: Thu, 30 Dec 2010 15:48:38 +0100


I searched google, I search the subversion doc
(here I searched "obstruct" and found only a python sample).

So my question (subversion.apache.org is just down, so I couldnt
look at the faq):

I have 2 files which are version controled:


The result I want to get is:

 a.txt -> b.txt

One possibility is:

 svn rm a.txt
 svn ci -m " removed a"
 ln -s b.txt a.txt
 svn add a.txt
 svn ci -m "added a as symlink"

I also tried:
 svn rm a.txt
 ln -s b.txt a.txt
 svn ci -m "replaced with as symlink"

But this does not work, I get an error "obstructed ..."
svn stat tells me the file has a status "~"

Stragely I got with rapidsvn a file status "R", but at the commandline
I didnt figure out how to get this.


 what is the "should-be" way of doing such a replacement????

... it would be nice to put this in the official doc,
so a lot of developers could save time posting in a lot of forums ....

Im a little bit frustrated,sorry.

But anyway, wish you a happy new year :-)

Received on 2010-12-30 15:45:46 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.