You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Elie Zananiri <pr...@gmail.com> on 2007/03/11 20:55:12 UTC

many externals in a single directory

Hello,

I would like to know if it is possible to have multiple externals all  
get downloaded to the same directory, and if so, how to do it.

I tried the following syntax:
     code http://www.arepository.com/
     code http://www.asecondrepository.com/
to have all external classes load in the "code" directory, but I  
think the second line overwrites the first because I only get files  
from the second repository in my "code" folder.  And I can't put the  
files in subfolders because the compiler (Processing) can only find  
them if they're at the root of the "code" folder.

Thanks for the help,

--
ez



Re: many externals in a single directory

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 12, 2007, at 08:17, Tom Malia wrote:

>> On Mar 11, 2007, at 15:55, Elie Zananiri wrote:
>>
>>> I would like to know if it is possible to have multiple externals
>>> all get downloaded to the same directory, and if so, how to do it.
>>>
>>> I tried the following syntax:
>>>     code http://www.arepository.com/
>>>     code http://www.asecondrepository.com/
>>> to have all external classes load in the "code" directory, but I
>>> think the second line overwrites the first because I only get files
>>> from the second repository in my "code" folder.  And I can't put
>>> the files in subfolders because the compiler (Processing) can only
>>> find them if they're at the root of the "code" folder.
>>
>> No, not possible with Subversion. Each external will get placed into
>> its own folder. The contents of your svn:externals property could be:
>>
>>      code1 http://www.arepository.com/
>>      code2 http://www.asecondrepository.com/
>
> I was following this thread with some interest as I can see  
> occasions where
> I might want to try to do the same thing.
>
> However, I think I'm beginning to understand why this isn't  
> possibly and
> would like to ask the group for confirmation that my current  
> understanding
> of the Subversion design is or is not correct.
>
> After messing with this product for about 3 or 4 days total now, I'm
> beginning to come to the realization that Subversion is basically  
> "Folder
> Level" management.  By which I mean, Subversion tracks changes to the
> content of a "Folder" not individual files, or rather, stores it's
> information about changes to files at the folder/directory level.
> Therefore, without a folder/directory Subversion really can't track  
> changes.
> Also, Subversion assumes that the entire contents of a single  
> folder in a
> working directory corresponds to one and only one folder in the  
> repository.
> Therefore, managing changes strictly at the individual file level is
> basically not an option... would this be an accurate statement?

I think in a way, that's right. Subversion needs to store admin info  
in the .svn directory within your working copy directory. If you  
don't have a working copy directory, but only have a file, it has no  
place to put its .svn info. If you wanted multiple externals to go  
into a single directory, current Subversion would probably get quite  
confused, since each external would expect to get complete control of  
the contents of the .svn directory.

Related: you cannot check out a file -- the smallest unit you can  
check out from a repo is a directory. (You can still export a single  
file, if you just want to see its contents, but you can't then make  
changes and check them back in.)

This is the existing enhancement request to be able to check out a  
single file:

http://subversion.tigris.org/issues/show_bug.cgi?id=823


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: many externals in a single directory

Posted by Tom Malia <to...@ttdsinc.com>.
I was following this thread with some interest as I can see occasions where
I might want to try to do the same thing.

However, I think I'm beginning to understand why this isn't possibly and
would like to ask the group for confirmation that my current understanding
of the Subversion design is or is not correct. 

After messing with this product for about 3 or 4 days total now, I'm
beginning to come to the realization that Subversion is basically "Folder
Level" management.  By which I mean, Subversion tracks changes to the
content of a "Folder" not individual files, or rather, stores it's
information about changes to files at the folder/directory level.
Therefore, without a folder/directory Subversion really can't track changes.
Also, Subversion assumes that the entire contents of a single folder in a
working directory corresponds to one and only one folder in the repository.
Therefore, managing changes strictly at the individual file level is
basically not an option... would this be an accurate statement?


-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2007a@ryandesign.com] 
Sent: Sunday, March 11, 2007 10:09 PM
To: Elie Zananiri
Cc: users@subversion.tigris.org
Subject: Re: many externals in a single directory

On Mar 11, 2007, at 15:55, Elie Zananiri wrote:

> I would like to know if it is possible to have multiple externals  
> all get downloaded to the same directory, and if so, how to do it.
>
> I tried the following syntax:
>     code http://www.arepository.com/
>     code http://www.asecondrepository.com/
> to have all external classes load in the "code" directory, but I  
> think the second line overwrites the first because I only get files  
> from the second repository in my "code" folder.  And I can't put  
> the files in subfolders because the compiler (Processing) can only  
> find them if they're at the root of the "code" folder.

No, not possible with Subversion. Each external will get placed into  
its own folder. The contents of your svn:externals property could be:

     code1 http://www.arepository.com/
     code2 http://www.asecondrepository.com/


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


---------------------------------------------------------------------
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

Re: many externals in a single directory

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 11, 2007, at 15:55, Elie Zananiri wrote:

> I would like to know if it is possible to have multiple externals  
> all get downloaded to the same directory, and if so, how to do it.
>
> I tried the following syntax:
>     code http://www.arepository.com/
>     code http://www.asecondrepository.com/
> to have all external classes load in the "code" directory, but I  
> think the second line overwrites the first because I only get files  
> from the second repository in my "code" folder.  And I can't put  
> the files in subfolders because the compiler (Processing) can only  
> find them if they're at the root of the "code" folder.

No, not possible with Subversion. Each external will get placed into  
its own folder. The contents of your svn:externals property could be:

     code1 http://www.arepository.com/
     code2 http://www.asecondrepository.com/


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org