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

Re: Subversion, decentralized version control, and the future.

From: Nik Clayton <nik_at_ngo.org.uk>
Date: 2007-07-06 03:24:52 CEST

Folker Schamel wrote:
> I think a shortcut for the repository root including "/" (e.g. "$")
> would be absolutely sufficient:
>
> Then use "svn cp . $tags/A", or "svn diff $tags/1.1 $tags/1.2" or whatever.

<bikeshed colour="blue">

'$' is a bad choice because of the need to quote it in shells.

I like the SVK approach. You have a client-side configuration file that
maps prefixes to URLs. It's like the CVS 'modules' feature, but
client-side rather than server-side.

Instead of using URLs on the command line, you use a path that looks like:

   /<prefix>/<rest-of-path>

So with a configuration like this, and assuming that svn(1) supported
this syntax.

   '': svn://host/repo/path
   svn: http://svn.collab.net/repos/svn/
   svnt: http://svn.collab.net/repos/svn/trunk

you could do:

    svn checkout //trunk
is svn checkout svn://host/repo/path

or

    svn checkout /svn/trunk
is svn checkout http://svn.collab.net/repos/svn/trunk

or

    svn checkout /svnt
is svn checkout http://svn.collab.net/repos/svn/trunk

    svn copy /svnt /svn/branches/my-first-branch
is svn copy http://svn.collab.net/repos/svn/trunk
http://svn.collab.net/repos/branches/my-first-branch

Any reason why libsvnclient couldn't be modified to support this syntax?

N
</bikeshed>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 6 13:11:58 2007

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