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

Re: SVNROOT suggestion - expand '//'

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-10-06 18:46:51 CEST

Nuutti Kotivuori wrote:

>Sometimes it would indeed be nice to be able to get the same behaviour
>as CVSROOT is for CVS in Subversion as well. Mostly adding this
>functionality has run into problems with Subversion not separating
>between the root of the repository and the latter part - and also the
>necessity of distinguishing URL operations from local working copy
>Now, Dave Gilbert on IRC gave a suggestion which seems to be worth
>considering - if not as such, atleast as a basis for further
>What if we said that '//' at the start of a path is expanded to the
>contents of the environment variable SVNROOT? For example:
>$ export SVNROOT=http://svn.collab.net/repos/svn
>$ svn co //trunk svn
>$ svn cp //trunk //tags/0.14.4
>Now that looks exceedingly clean. There may be horrible problems with
>this idea and atleast it's not standard by any means that I know of,
>but I thought it could be a nice start for a discussion.
>Would this syntax work? Are there better choices? Or is the whole
>feature deemed too obscure to implement?

We've had that discussion before. Last time, I proposed %% instead of
//, but anyway. The net result was that we had "svn url" for a short
time, then that was supplanted by "svn info" + a sed hack, and the
rationale was that "anyone can write `svn info bla | sed qux`/foo".
Windows users, and those that don't want to type gunk instead of a
simple prefix, were ignored.

FWIW; +1 for the proposal, but I doubt it'll survive. :-)

Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Oct 6 18:47:24 2002

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