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

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

From: Nick <nospam_at_codesniffer.com>
Date: Thu, 30 Dec 2010 15:54:54 -0500

On Thu, 2010-12-30 at 15:48 +0100, anton wrote:
> Hi,
>
> 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:
>
> a.txt
> b.txt
>
> The result I want to get is:
>
> a.txt -> b.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.
>
> Question:
>
> 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 :-)
>
> Anton

I've been bumping into this same situation recently and would also like
to hear how best to handle it.

Nick
Received on 2010-12-30 21:55:36 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.