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

Re: Environmental variable for path to repository?

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: 2006-03-03 23:15:21 CET

On Fri, Mar 03, 2006 at 10:53:15PM +0100, Ryan Schmidt wrote:
> On Mar 3, 2006, at 21:29, Steve Kargl wrote:
> >I am considering the conversion of several of my projects
> >under CVS control to SVN. With CVS, I set the CVSROOT
> >environmental variable to /long/path/to/my/directory/CVS.
> >Under CVSROOT, I have project A, B, C, and D. To work
> >on project B, I often move into the $HOME/prj directory
> >and issue the CVS command "cvs checkout B". This command
> >will automatically look in CVSROOT for project B. Is
> >there an equivalent to CVSROOT in subversion?
> >
> >I would like to do
> >
> >mkdir $HOME/path/to/SVN
> >setenv SVNROOT $HOME/path/to/SVN
> >svnadmin create A
> >
> >where A shows up in $HOME/path/to/SVN.
> Subversion doesn't have any such support built-in, but you can do it
> yourself on the shell.
> export S=$HOME/path/to/SVN
> mkdir $S
> svnadmin create $S/A
> cd $HOME/prj
> svn checkout $S/A

Having to explicitly give an environmental variable on the
command line for each svn command, kind of defeats the whole
purpose of such variables.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 3 23:16:42 2006

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.