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

Re: Repository URL defaulting?

From: Joey Hess <joey_at_kitenet.net>
Date: 2003-11-04 16:37:31 CET

Eric Sammer wrote:
> Maybe it's not the most exciting thing in the world, but what is the
> general feeling on defaulting to the repository from whence the checkout
> came when working with commands that take repository URLs? I find that
> when doing relatively common things like diffs, updates, or merges, I
> wind up typing a rather verbose repository URL way too many times. Even
> if the URI scheme and host were defaulted, forcing only the
> specification of the path component of hate URI, a lot of time (for me
> at least) would be saved.

I use the attached script, as follows:

joey@dragon:~>svnpath
svn+ssh://kitenet.net/home/svn/joey/trunk/home-full

svn cp `svnpath` `svnpath branches`/new_branch
svn cp `svnpath` `svnpath tags`/new_tag
svn cat `svnpath`/foo

It does a very simple substitution of the optional first argument to get
to tags or branches, so should work with nearly any repository layout.

-- 
see shy jo

Received on Tue Nov 4 16:33:44 2003

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.