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

Re: Subversion != your filesystem (was mv != (cp && rm))

From: Florin Iucha <florin_at_iucha.net>
Date: 2001-11-28 19:13:22 CET

On Wed, Nov 28, 2001 at 06:55:24PM +0100, Branko Čibej wrote:
> >What will happen if I link A to B and then
> > 1. cp B C && rm B
> > 2. mv B C
> >
> Don't know. :-)
> The design for "svn ln" is far from complete. It hasn't even been
> started yet, AFAIK.

svn ln B A will link A to the "current" B or to the B that was at the
moment of the link?

>
> >You can argue that in both cases A will link to C
> >
> Possibly.
>
> > but, then what happens
> >when
> > cp B C && change C && cp B D && change D && rm B && commit
> >where does A point to now?
> >
> This is not a move. A would be a dangling reference in this case.

Why would it be a special case when I do only one copy? And if _single_
cp followed by rm is special why not call it, let's say "mv", to show
it's importance ? 8^)

florin

-- 
"If it's not broken, let's fix it till it is."
41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4

  • application/pgp-signature attachment: stored
Received on Sat Oct 21 14:36:49 2006

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

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