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

Re: Overlay directories in subversion

From: Tim Hill <tim_at_realmsys.com>
Date: 2005-04-07 21:19:29 CEST

Why are you trying to do this? It sounds like you might be overlapping
two needs -- a structure for maintaining source and/or making edits, and
some kind of aggregated view necessary for the consumer of that source
(e.g. a tool chain or app)? If so, I would segregate the functions; that
is, do editing with a working copy that models the repository tree, and
only "aggregate" the files when necessary for the tool (presumably using
a script to automate). You could even drive the script from svn
properties, or possibly use externals.

--Tim

Krishna Raman wrote:

> Well, that wont work for me because a,b,c,d,e,f,g are files and not
> folders...i read up on svn:externals and that wont work for files
> wither. Now I;m trying svk to see if there is any feature there that
> can help.
>
> Krishna Raman
> Distributed Object Computing Lab
> The Henry Samueli School of Engineering University of California, Irvine
>
> 608 Engineering Tower
> University of California, Irvine
> Irvine, CA 92697-2700
> +1 (949) 824-7548
> kraman@doc.ece.uci.edu
> http://doc.ece.uci.edu/~kraman/
>
>
>
> Robert Hunter wrote:
>
>> Eden Crane wrote:
>>
>>
>>>>> Krishna Raman wrote:
>>>>> Does anyone know how I can overlay directories/files in subversion.
>>>>>
>>>>> here is the issue. I have 2 subversion folders under 1 repository
>>>>> /svn/repos/ProjectA/ /svn/repos/ProjectA/a
>>>>> /svn/repos/ProjectA/b
>>>>> /svn/repos/ProjectA/c
>>>>> /svn/repos/ProjectA/d
>>>>>
>>>>> /svn/repos/ProjectASuppliment/ /svn/repos/ProjectASuppliment/e
>>>>> /svn/repos/ProjectASuppliment/f
>>>>> /svn/repos/ProjectASuppliment/g
>>>>>
>>>>> I want to be able to check out both into my home directory in such
>>>>> a way that i see
>>>>>
>>>>> /home/kraman/ProjectAFull/a
>>>>> /home/kraman/ProjectAFull/b
>>>>> /home/kraman/ProjectAFull/c
>>>>> /home/kraman/ProjectAFull/d
>>>>> /home/kraman/ProjectAFull/e
>>>>> /home/kraman/ProjectAFull/f
>>>>> /home/kraman/ProjectAFull/g
>>>>>
>>>>> I know this is possible with ClearCase. Any ideas on how to do
>>>>> this with subversion?
>>>>>
>>>>
>>>> $ mkdir /home/kraman/ProjectAFull
>>>> $ cd /home/kraman/ProjectAFull
>>>> $ svn checkout $REPOS/ProjectA .
>>>> $ svn checkout $REPOS/ProjectASuppliment/e
>>>> $ svn checkout $REPOS/ProjectASuppliment/f
>>>> $ svn checkout $REPOS/ProjectASuppliment/g
>>>>
>>>
>>> How would you check those files back in when you are done modifying
>>> them?
>>>
>>>
>>
>>
>> $ cd /home/kraman/ProjectAFull
>> $ svn commit *
>>
>> The "svn status" and "svn commit" commands consider the folders
>> from ProjectASuppliment to be unversioned when considering
>> the working copy at /home/kraman/ProjectAFull.
>>
>> Explicitly specifying the sub-folders though, there's no issue
>> because each folder is a working copy in itself.
>>
>>
>>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>For additional commands, e-mail: users-help@subversion.tigris.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 7 21:24:29 2005

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.