[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: Frank Gruman <fgatwork_at_verizon.net>
Date: 2006-03-04 20:06:42 CET

Steve Kargl wrote:
> On Fri, Mar 03, 2006 at 07:28:34PM -0500, Duncan Murdoch wrote:
>
>> Steve Kargl wrote:
>>
>>> On Fri, Mar 03, 2006 at 05:30:05PM -0500, Frank Gruman wrote:
>>>
>>>> Steve Kargl wrote:
>>>>
>>>>> On Fri, Mar 03, 2006 at 10:53:15PM +0100, Ryan Schmidt wrote:
>>>>>
>>>>>> 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.
>>>>>
>>>>>
>>>> I disagree. You could theoretically have different variables pointing
>>>> to different repositories with various working copies on your computer.
>>>>
>>>> For example - I have 3 separate working copies attached to 3 separate
>>>> repositories. The first is our code server, the second is a completely
>>>> separate repository for documents, and the third is my own personal code
>>>> server that I have hosted from home. SO - in the CVS world, what would
>>>> I set my CVSROOT to? Given Ryan's response, I could create
>>>> $CODE/project/path, $DOCS/project/path, and $HOME/project/path.
>>>>
>>>>
>>> It is clear that you and I have a different idea on what a repository
>>> is. To me, a repository contains independent projects. To you, each
>>> independent project has its own repository.
>>>
>> Or perhaps he collaborates on several projects hosted by other people.
>>
>>
>
> So, you're suggesting that I don't collaborate with others?
>
> I have CVSROOT set to $HOME/CVS and I had three different
> versions of GCC on my system via cvs. GCC moved to svn,
> which has prompted my potential move of $HOME/CVS to svn.
>
>
So all of your projects are GCC. They pretty much all come from one
server. Try working on more than one project that is hosted by separate
servers. Even if they are all running CVS, the CVSROOT would not work
properly unless you reset it for each program you are trying to run.

I have a friend who swears by CVS, and his way of telling me what he
does is that he has a shell script that he wrote to automatically switch
his CVSROOT from one location to the next so he could maintain the 6 or
so different projects he works on. To me, that is just another work
around / hack to setting 6 separate environment variables and calling
them in the few instances in which you actually need them in Subversion.

Regards,
Frank
Received on Sat Mar 4 20:07:46 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.