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

RE: SVN keyword replacement

From: Scott Bloom <scott_at_towel42.com>
Date: Tue, 19 Feb 2019 18:02:07 +0000

Thanks for the response!

In our C++ files, we use the following in our copyright header

/*

$Author$ - $Revision$ - $Date$
$HeadURL$

*/

Which gets replaced with the appropriate data.

$HeadURL$ gets substituted with

$HeadURL: http://svnsvrpath/trunk/dir1/dir2/filename.cpp

The problem is, if I do a svn cp & switch for a branch
svn cp ^/trunk ^/branches/workbranch/
svn switch ^/branches/workbranch

the file gets updated (every file, every header etc) to
$HeadURL: http://svnsvrpath/branches/workbranch/dir1/dir2/filename.cpp

What I would prefer
$HeadURL: ^/dir1/dir2/filename.cpp

This way, I can see where the file is located in the repository, but on a svn branch, the file doesn’t change

Does this make sense?

Thanks again,
Scott

-----Original Message-----
From: Pavel Lyalyakin <pavel.lyalyakin_at_visualsvn.com>
Sent: Tuesday, February 19, 2019 09:55
To: Scott Bloom <scott_at_towel42.com>
Cc: users_at_subversion.apache.org
Subject: Re: SVN keyword replacement

Hello Scott,

On Tue, Feb 19, 2019 at 8:41 PM Scott Bloom <scott_at_towel42.com> wrote:
>
> Our repository currently uses $HeadURL, and it works as advertised.
>
> However, I would prefer just the file from ^, this way if there is a branch, and a switch, everyfile wont have to be rebuilt.
>
> The redbooks lists nothing like this, but Im hoping it’s a
> documentation issue
>
> Scott

Could you please show some examples of the desired result? How do you use the $HeadURL keyword now? Do you want to make $HeadURL show contents of this file? What '^' file are you asking about?

--
With best regards,
Pavel Lyalyakin
VisualSVN Team
Received on 2019-02-19 19:02:25 CET

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