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

property change & keyword substitution

From: Artur Klauser <Artur.Klauser_at_computer.org>
Date: 2004-04-27 22:23:58 CEST

I'm wondering what the supposed behavior is for keyword substitution, if
ONLY a file property is changed, not the contents of a file. Is the
keyword (e.g. $Rev$) going to be substituted with the new revision number
or not?

The concrete situation that I see:
A repository contains a_file, with contents:

$Rev$

and property svn:keywords set to 'Rev' and property 'myprop' set to 'foo'.
Users Andrew and Beth both have an up to date copy of a_file at revision
99. Both see the file contents as

$Rev: 99$

Andrew now sets 'myprop' to 'bar' and checks in his change, creating
revision 100. After the checkin, his contents of the file is

$Rev: 100$

Now Beth updates her working copy 'svn update'. She gets the property
update of a_file

% svn proplist -v a_file
Properties on 'a_file':
  svn:keywords : Rev
  myprop : bar

but when she looks at the contents, it contains

$Rev: 99$

Why? Bug or feature?

BTW, if Beth now removes her working copy of the file (rm a_file) and does
either an 'svn revert' or an 'svn update', she gets the same
contents as Andrew (which is what I expected always to happen)

$Rev: 100$

 -r2r-

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 27 22:24:42 2004

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.