Login | Register
My pages Projects Community openCollabNet

Discussions > users [DISABLED] > Re: "svn switch" and Subversion properties

subversion
Discussion topic

There will be a brief maintenance window every Friday at 17:00 Pacific.
For further details, see CollabNet's maintenance and upgrade policy.

Back to topic list

Re: "svn switch" and Subversion properties

Author stsp
Full name Stefan Sperling
Date 2009-11-25 11:46:22 PST
Message 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/prop​del/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-sand​box/repos/trunk/alph​a $
alpha
$ svn switch ^/branch
At revision 4.
$ cat alpha
$URL: file:///tmp/svn-sand​box/repos/branch/alp​ha $
alpha
$

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

Stefan

« Previous message in topic | 2 of 3 | Next message in topic »

Messages

Show all messages in topic

"svn switch" and Subversion properties "Dr dot Stefan Friedrich" <mail at stefanfriedrich dot com> "Dr dot Stefan Friedrich" <mail at stefanfriedrich dot com> 2009-11-25 10:41:57 PST
     Re: "svn switch" and Subversion properties stsp Stefan Sperling 2009-11-25 11:46:22 PST
     Re: "svn switch" and Subversion properties stsp Stefan Sperling 2009-11-26 13:36:33 PST
Messages per page: