[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: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 30 Dec 2010 23:03:48 +0200

Nick wrote on Thu, Dec 30, 2010 at 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

At this point you need to:

     svn add a.txt

> > svn ci -m "replaced with as symlink"
> >

You could have tried 'svn ci a.txt' here. (with an explicit target)

> > 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 22:10: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.