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

Re: Possible svn bug?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-04-07 19:47:05 CEST

On Wed, 2004-04-07 at 12:27, Attila BODY wrote:

> After move and commint, the moved directory has not been deleted from
> it's original place. It only copied to the nev location, bud not
> deleted.

There's no bug here. Subversion doesn't have true moves. It implements
moves as copies and deletes.

That means that 'svn mv foo bar' is exactly the same as running 'svn cp
foo bar; svn rm bar'.

After running the command, 'svn status' will show two things
"scheduled": bar will be scheduled for addition (with historical
information attached), and foo will be scheduled for deletion. When you
run 'svn commit', the addition and deletion will actually happen in the
repository, and then in your working copy.

When you then run 'svn log bar', you'll be able to see that bar was
copied from foo, i.e. is a continuation of the same line of history.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Apr 7 19:48:56 2004

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.