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

Re: [Bug?] making a new subdir, moving files into it and then renaming the subdir, breaks history of the moved files

From: Tyler Roscoe <tyler_at_cryptio.net>
Date: Tue, 25 Aug 2009 10:19:46 -0700

On Tue, Aug 25, 2009 at 06:04:28PM +0200, Johan Corveleyn wrote:
> Here goes (assuming we're in a working copy with a versioned file a.txt):
> $ svn mkdir subdir
> A subdir
>
> $ svn mv a.txt subdir/
> A subdir\a.txt
> D a.txt
>
> $ svn st
> A subdir
> A + subdir\a.txt
> D a.txt
> # -> All still ok
>
> $ svn mv subdir/ subdir2
> A subdir2
> A subdir2\a.txt
> D subdir
>
> $ svn st
> A subdir2
> A subdir2\a.txt
> D a.txt
> # -> subdir2\a.txt no longer has a historic relationship with a.txt.
> # If we commit this, we effectively break the line of history of a.txt
>
> Other variations of this scenario seems to work out better:
> - If subdir already exists, the move of a file into it followed by the rename of subdir is no problem.

I discussed something similar on the list recently:
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2377048

The short answer is "don't do multiple structural changes without
committing in between".

tyler

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2387234

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-26 23:58:09 CEST

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.