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

Re: Invalid last changed info after svn copy WC -> WC ?

From: Christian Franke <Christian.Franke_at_t-online.de>
Date: Thu, 29 Oct 2009 07:30:48 +0100

Christian Franke wrote:
> Hi,
>
> if 'svn copy' is used to copy a WC dir to a new WC dir, the 'Last
> Changed Rev' info of the new WC files is incorrect after the commit.
>
>
> Steps to reproduce in an empty dir:
> (tested with svn 1.6.5 and 1.4.2)
>

Can also be reproduced with svn 1.6.6 (r40053, Cygwin)

Simplified testcase:

$ svnadmin create ./repo

$ svn co "file://$(pwd)/repo" ./work
Checked out revision 0.

$ cd ./work

$ svn mkdir trunk tags
A trunk
A tags

$ echo test > trunk/file.txt

$ svn add trunk/file.txt
A trunk/file.txt

$ svn commit -m 'first'
Adding tags
Adding trunk
Adding trunk/file.txt
Committed revision 1.

$ svn copy trunk tags/one
A tags/one

$ svn commit -m 'tag one'
Adding tags/one
Committed revision 2.

$ svn update
At revision 2.

$ svn info tags/one/file.txt | grep Rev
Revision: 2
Last Changed Rev: 2 <--- Bug: differs from info in repo ---

$ rm -rf tags/one

$ svn update
A tags/one
A tags/one/file.txt
Updated to revision 2.

$ svn info tags/one/file.txt | grep Rev
Revision: 2
Last Changed Rev: 1 <--- Now OK ---

Not a big problem unless the wrong last changed info affects future commits.

Christian

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-29 07:33:04 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.