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

Re: "SVN short URL" enhancement request

From: Beman Dawes <bdawes_at_acm.org>
Date: 2007-08-25 12:45:12 CEST

Stefan Küng wrote:
> Beman Dawes wrote:
>> The "SVN short URL" column seems to work by dropping the leading portion
>> of
>> the URL up to, but not including, the first single slash.
>> So "https://svn.boost.org/svn/boost/trunk" becomes "/svn/boost/trunk".
>> Horizontal space is at a premium, so in the above case I'd like to also
>> drop
>> the "/svn/boost/" so the final result becomes simply "trunk".
>> One way to make this work would be to attach an option to the top-level
>> directory of the working copy that says in effect "Drop this portion of
>> the
>> URL: ...", where the "..." is something the user can set. This setting
>> would
>> be inherited by any directories below the working copy root directory.
>> So in my example above, I'd specify to drop "//svn.boost.org/svn/boost/".
>> The default would be the URL, in this case "//svn.boost.org" or maybe
>> "//svn.boost.org/" if the user does not supply a string.
> As of revision 10418, we check for /trunk, /branches or /tags in the url
> and remove everything before that. I think that's better than having
> some configuration. I know it's not perfect because there are situations
> where those folders are below the repository root, but the column is
> called 'short url' and we have nowhere defined what 'short' really is :)

On one hand, that's a nice improvement. It does, however, effectively
mandate using repository organizations with /trunk, /branches, and /tags
somewhere in every path if you want the short url.

When you say "remove everything before that", I hope you are also removing
the leading "/" from /trunk, /tags, and /branches. It takes up horizontal
space yet doesn't convey any useful information.


--Beman Dawes, boost.org

View this message in context: http://www.nabble.com/%22SVN-short-URL%22-enhancement-request-tf4323526.html#a12325015
Sent from the tortoisesvn - dev mailing list archive at Nabble.com.
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sat Aug 25 12:47:34 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.