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

Re: Link a client directory to a different repository directory

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Thu, 11 Sep 2008 01:58:56 -0500

On Sep 10, 2008, at 02:13, PAIRIS Thibault wrote:

>> You could just check out the subdirectory for the working copies. An
>> awful lot of SVN working copies do this. Instead of
>> http://server/repository/ being your URL, use
>> http://server/repository/root/
>
> I am sorry I wasn't clear. There are other directories along with the
> root directory. To give you an example, the repository is something
> like
> :
> module1
> module2
> module3
> root
>
> The working copy is :
> module1
> module2
> module3
> js
> css
> index.html
> favicon.ico
>
> The four last items come from the root directory on the repository.
>
> Is there a way to move files from the subdirectory to the root when
> clients check it out, or my only move is to do so permanently on the
> repository ?

If that is the structure you want to have in the working copy, then
the best idea would be for you to arrange your repository to have the
same structure.

You could check things out independently:

svn co http://server/repository/root wc
cd wc
svn co http://server/repository/module1
svn co http://server/repository/module2
svn co http://server/repository/module3

However then the modules are not connected to the items that came
from root, and you cannot commit anything in any of the modules
together with anything else. In other words, if you make a change to
several items that came from root, and also make changes to modules 1
and 2, and want to commit all these changes, Subversion will require
you to make at least three commits -- the items that came from root,
the items that came from module1, and the items that came from module2.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-11 08:59:49 CEST

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.