[Bug?] svn moving A to B and B to A becomes replace
From: Johan Corveleyn <johan.corveleyn_at_uz.kuleuven.ac.be>
Date: Wed, 17 Jun 2009 02:12:43 +0200
We have experienced some strange, and IMHO undesired, behavior. I've searched the SVN bug database and mailinglists, but haven't found anything exactly the same. Is this a bug?
Short description:
Reproduction script (suppose test.txt is a versioned file in my working copy):
$ svn status -N
$ svn mv test.txt2 test.txt
$ svn status -N
This is quite destructive, as svn thinks the file was replaced by a new file (with no historical link to the original one). After committing, the file loses the old line of history (of course, I know it's not totally lost, because you can still get to it with peg revisions, but still ...).
A colleague of mine ran into this with the following, not so unlikely, scenario:
Note that, because of step 2), he couldn't just revert the name change. If he would have committed after 1) or even after 2), and then renamed it back, there would have been no problem.
Regards,
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
|
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.