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

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

From: Christian Franke <Christian.Franke_at_t-online.de>
Date: Fri, 23 Oct 2009 22:59:06 +0200

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)

$ svnadmin create ./repo

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

$ cd ./work

$ svn mkdir trunk tags
A trunk
A tags

$ cat > trunk/file.txt <<'EOF'
$Revision$
$Date$
EOF

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

$ svn propset svn:keywords 'Revision Date' trunk/file.txt
property 'svn:keywords' set on '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.

$ diff -us trunk/file.txt tags/one/file.txt
--- trunk/file.txt 2009-10-23 10:28:12.218750000 +0200
$++ tags/one/file.txt 2009-10-23 10:28:14.796875000 +0200
@@ -1,2 +1,2 @@
-$Revision: 1 $
-$Date: 2009-10-23 10:28:12 +0200 (Fri, 23 Oct 2009) $
+$Revision: 2 $
+$Date: 2009-10-23 10:28:14 +0200 (Fri, 23 Oct 2009) $

$ svn info trunk/file.txt | grep Rev
Revision: 2
Last Changed Rev: 1

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

$ cd ..

A fresh checkout of the above commit is OK:

$ svn co "file://$(pwd)/repo" ./other
A other/trunk
A other/trunk/file.txt
A other/tags
A other/tags/one
A other/tags/one/file.txt
Checked out revision 2.

$ cd ./other

$ diff -us trunk/file.txt tags/one/file.txt
Files trunk/file.txt and tags/one/file.txt are identical

$ svn info trunk/file.txt | grep Rev
Revision: 2
Last Changed Rev: 1

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

Thanks,
Christian

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

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