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

Re: Wish List (Revisited)

From: John Peacock <jpeacock_at_rowman.com>
Date: 2004-03-04 16:04:13 CET

TBrowder wrote:

> svn checkout [svn applies $SVNROOT automagically] whatever
>

You can trivially write a wrapper (in Perl or even shell functions), which would
do this for you. There is no good reason (IMNSHO) to make the commandline
parser even more complicated, for something that will benefit only those people
who [almost] always use the same repository. The other reason why this isn't
that helpful is that it is only used when initially creating a WC; once you have
a WC, you don't need to refer to the repository anymore.

Something like this would work under bash:

export SVNROOT=/path/to/repos

function checkout {
        /usr/local/bin/svn checkout $SVNROOT/$1
}

Add that to the system profile scripts and you are good to go...

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 4 16:02:47 2004

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