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

RE: The use of SVNROOT

From: Eramo, Mark <meramo_at_hbs.edu>
Date: Mon, 8 Mar 2010 09:48:04 -0500

>There is no equivalent of CVSROOT in Subversion. But when it has been asked for before, the response has been: what do you need it for? If you just want a shortcut for checking out, define an environment variable and use that. This is what I do in my ~/.bashrc:
>export M="http://svn.macosforge.org/repository/macports"
>Then I can for example:
>svn checkout $M/trunk/dports
>svn log $M --limit 5
>I use the variable "M" because it's easy to remember that it stands for MacPorts and I'm not using it for anything else, but you can name it anything you want, or define multiple env vars for multiple repositories or multiple paths within a repository (for example, >a separate variable for the trunk, or for a deep path within the repo that you often want to refer to).
>Remember, the working copy stores the repository URL it was checked out from, so the only time you need the repository URL is when you're checking out or when you're asking for a log or similar function and aren't already sitting in the working copy's directory.

Thanks for the reply Ryan. I was thinking about doing something like this but I wanted to confirm the need of SVNROOT first.


Received on 2010-03-08 15:48:40 CET

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