[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:17:24 +0000

Appreciate the feedback.. I understand the “tags vs branches vs folders” issue… I was just hoping.

Question, is it possible, to add a “regex” style custom keyword? I would be willing to volunteer to implement it.
So maybe an automated system could figure this out, using other custom file attributes?

Scott
From: Mark Phippard <markphip_at_gmail.com>
Sent: Tuesday, February 19, 2019 10:13
To: Scott Bloom <scott_at_towel42.com>
Cc: Pavel Lyalyakin <pavel.lyalyakin_at_visualsvn.com>; users_at_subversion.apache.org
Subject: Re: SVN keyword replacement

On Tue, Feb 19, 2019 at 1:08 PM Scott Bloom <scott_at_towel42.com<mailto:scott_at_towel42.com>> wrote:
Unfortunately %P still includes branch directories….

Yes, it is repository relative. That is the best you are going to get out of Subversion.

Subversion does not really have branches or tags. It has paths (folders and files). Branches and tags are just a convention of how you use those paths. Even defining a syntax to lop off some part of the %P would be pretty difficult when you consider you might have "root" paths of all different depths:

/trunk
/branches/1.8.x
/branches/releases/1.8.x
/branches/features/joe/feature-1
/tags/release/1.8.9
/tags/1.8.9

etc.

Short of some major change in SVN to let you mark the root of your tree there probably will not ever be a way to do any better than what %P gives you.

--
Thanks

Mark Phippard
http://markphip.blogspot.com/
Received on 2019-02-19 19:23:56 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.