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

Re: "svn switch" and Subversion properties

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 25 Nov 2009 20:46:17 +0100

On Wed, Nov 25, 2009 at 07:41:34PM +0100, Dr. Stefan Friedrich wrote:
> Hello,
>
> I have the following problem:
>
> If I switch my working copy from the trunk to another branch or tag,
> Subversion properties (e.g. $URL$, …) won’t be updated.

You probably mean keywords, which are expanded within file content,
rather than properties, which are meta-data attached to files or
directories and manipulated with the propset/propget/propdel/propedit
commands?

> (Of course, If I check out the branch or tag completely new, files
> with Subversion properties have the right values.)
>
> I tried yesterday the latest revision (884224) from the trunk and used
> the command line client (svnadmin and svn).
>
> Is this a bug or a feature?

I cannot reproduce this, it works for me, with trunk as of r883642.

$ cat alpha
$URL$
alpha
$ svn ps svn:keywords URL alpha
property 'svn:keywords' set on 'alpha'
$ svn ci -m "set URL keyword in /trunk/alpha"
Sending alpha
Transmitting file data .
Committed revision 3.
$ cd ../branch/
$ svn ps svn:keywords URL alpha
property 'svn:keywords' set on 'alpha'
$ cat alpha
$URL$
alpha
$ svn ci -m "set URL keyword in /branch/alpha"
Sending alpha
Transmitting file data .
Committed revision 4.
$ cd ../trunk
$ cat alpha
$URL: file:///tmp/svn-sandbox/repos/trunk/alpha $
alpha
$ svn switch ^/branch
At revision 4.
$ cat alpha
$URL: file:///tmp/svn-sandbox/repos/branch/alpha $
alpha
$

As you can see, the URL is expanded correctly after the switch.

Stefan

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

Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-11-25 20:47:13 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.