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

Re: '.svn/entries' file and checking out whole tree vs. checking out individual directories

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-09-20 14:27:10 CEST

On 9/20/07, Doug Hockin <dhockin@tibco.com> wrote:
>
> If I checkout a whole tree worth of files and directories recursively,
> then the
> root's 'entries' file (.svn/entries) contains a 'dir' entry for each
> immediate sub-directory.
>
> If instead I checkout all the files in the root (non-recursive) and then
> individually checkout each of
> the sub-directories recursively, the root's 'entries' file does not
> contain an entry
> for each of the sub-directories. As a result subsequent operations
> performed from
> the root don't ripple down the sub-directory trees. For example an 'svn
> status' will
> show all those sub-directories as '?', not under version control.

Sounds right to me. You're actually creating *two* WCs, one inside the
other (which can become very confusing).

> Is
> there any way to do the
> sub-directories separately like this and get the 'dir' entries into the
> top level 'entries' file?
>
> I need to do them separately because I don't want all of them, some are
> excluded.

This should work:
svn co --non-recursive <base_dir>
svn up <list_of_directories_you_do_want>

> And some in the working-copy come from a different place in the
> repository and are inserted
> into this tree.

Then you should be using externals for them.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 20 14:27:31 2007

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.