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

propset --revprop svn:author fails to update working copy

From: Matt Brown <matt_at_mattb.net.nz>
Date: 2005-06-16 03:52:01 CEST

Hi,

Distribution: Debian Sarge
matt@matt-devel:~/tmp/test$ svn --version
svn, version 1.1.4 (r13838)
   compiled May 13 2005, 06:29:47

I've run into an interesting problem where after using the propset
command to update the author field of a previously completed revision my
working copy does not get updated correctly.

Subsequent calls to svn info for the files modified in the revision
still show the last change author as the original value of the field.
Checking out a fresh working copy or viewing the repository via a
svnadmin dump confirms that the change has taken effect in the
repository.

I can't find any way to make my working copy consistent with the
repository again without removing it. Has anyone else observed this
behaviour? Shall I file an issue regarding this?

How to reproduce:

Start with an empty repository with revprop changes enabled (mine is
in /tmp/test)

1) svn co file:///tmp/test/
Checked out revision 0.

Enter repository and add a file
2) cd test
3) touch a
4) svn add a
A a

5) svn commit
Adding a
Transmitting file data .
Committed revision 1.

svn log and svn info now show the author of the revision as me (matt)

6) svn log a
------------------------------------------------------------------------
r1 | matt | 2005-06-16 13:42:03 +1200 (Thu, 16 Jun 2005) | 2 lines

New file

------------------------------------------------------------------------

7) svn info a
Path: a
Name: a
URL: file:///tmp/test/a
Repository UUID: 42a27ff7-9ef9-0310-a581-cf254ec62463
Revision: 1
Node Kind: file
Schedule: normal
Last Changed Author: matt
Last Changed Rev: 1
Last Changed Date: 2005-06-16 13:42:03 +1200 (Thu, 16 Jun 2005)
Text Last Updated: 2005-06-16 13:41:56 +1200 (Thu, 16 Jun 2005)
Checksum: d41d8cd98f00b204e9800998ecf8427e

Update the author property to 'foobar'

8) svn propset --revprop -r 1 svn:author foobar
property 'svn:author' set on repository revision 1

After the update svn log show the author property as being updated

9) svn log a
------------------------------------------------------------------------
r1 | foobar | 2005-06-16 13:42:03 +1200 (Thu, 16 Jun 2005) | 2 lines

New file

------------------------------------------------------------------------

However svn info does not reflect the updated property

10) svn info a
Path: a
Name: a
URL: file:///tmp/test/a
Repository UUID: 42a27ff7-9ef9-0310-a581-cf254ec62463
Revision: 1
Node Kind: file
Schedule: normal
Last Changed Author: matt
Last Changed Rev: 1
Last Changed Date: 2005-06-16 13:42:03 +1200 (Thu, 16 Jun 2005)
Text Last Updated: 2005-06-16 13:41:56 +1200 (Thu, 16 Jun 2005)
Checksum: d41d8cd98f00b204e9800998ecf8427e

11) svn update
At revision 1.

Even after an update the working copy is still out of sync with the repository

12) svn info a
Path: a
Name: a
URL: file:///tmp/test/a
Repository UUID: 42a27ff7-9ef9-0310-a581-cf254ec62463
Revision: 1
Node Kind: file
Schedule: normal
Last Changed Author: matt
Last Changed Rev: 1
Last Changed Date: 2005-06-16 13:42:03 +1200 (Thu, 16 Jun 2005)
Text Last Updated: 2005-06-16 13:41:56 +1200 (Thu, 16 Jun 2005)
Checksum: d41d8cd98f00b204e9800998ecf8427e

The following commands demonstrate that checking out a new working copy
is the only way to become consistent with the repository again.

13) cd ../
14) mv test t
15) svn co file:///tmp/test; cd test
A test/a
Checked out revision 1.

16) svn info a
Path: a
Name: a
URL: file:///tmp/test/a
Repository UUID: 42a27ff7-9ef9-0310-a581-cf254ec62463
Revision: 1
Node Kind: file
Schedule: normal
Last Changed Author: foobar
Last Changed Rev: 1
Last Changed Date: 2005-06-16 13:42:03 +1200 (Thu, 16 Jun 2005)
Text Last Updated: 2005-06-16 13:43:04 +1200 (Thu, 16 Jun 2005)
Properties Last Updated: 2005-06-16 13:43:04 +1200 (Thu, 16 Jun 2005)
Checksum: d41d8cd98f00b204e9800998ecf8427e

I hope this is sufficient information to describe my problem completely.
Please let me know if I have left anything out.

Regards

-- 
Matt Brown
matt@mattb.net.nz
Mob +64 275 611 544 www.mattb.net.nz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 16 03:53:59 2005

This is an archived mail posted to the Subversion Users mailing list.