I've got a little script called cvs which appears in my path before the real cvs command which allows me to handle multiple CVS repositories based on the directory it is in and is configured from comments placed within ~/.cvsrc which has proved quite useful; no reason you couldn't use something similar to call svn or cvs as required in the same manner.
The one reason that I haven't done this yet is that I have an extraordinarily evil directory at work which is both a CVS working copy and a Subversion working copy. :)
Um, why? The only time you need to tell cvs which repo to use is when you don't have a ./CVS directory, e.g. when doing cvs import or cvs checkout. I never have the CVSROOT environment variable set: I just rely on ./CVS/Root and very occasional use of cvs -d.
You do if you're dealing with multiple CVS servers tho; thus I have a directory called ~/work/wcmc where all of my work stuff is checked out into and ~/work/bpfh where all of my stuff gets checked out into.
Whilst some of this info does get put into the CVS/Root file, things like a specific command name required for me to ssh into work (i.e. setting CVS_RSH) don't work.
The script originally came from WorldCom where every project had its own CVS repository thanks to the use of SourceForge and access was done via ssh
Whilst some of this info does get put into the CVS/Root file, things like a specific command name required for me to ssh into work (i.e. setting CVS_RSH) don't work.
The script originally came from WorldCom where every project had its own CVS repository thanks to the use of SourceForge and access was done via ssh