Hi all,
Sorry for my last post, since I messed Awc2 with Awc in the example.
However, I find myself get even more confusing after some more reading.
The soc page has the following description for the sparse-directories
interface entry:
Although we now support sparse checkouts, we do not yet
have any way to remove subtrees from a working copy once
they have been brought in. This task involves coming up
with an interface specification first (via list discussion),
and then implementing it.
And there is an issue #2843 describing the same problem with the following
example.
$ svn co --depth=empty http://.../repos/greek-tree/
$ cd greek-tree
$ svn up A
In fact, you can't yet even do:
$ svn up --depth=empty A
...to at least "fold up" A/ and save the disk space.
And Karl Fogel presented a workaround for it, by switch between versions:
$ svn up -r0 A
D A
Updated to revision 0.
$ svn up --depth=empty A
A A
Updated to revision 1.
$ cd A
$ svn up
At revision 1.
$ svn up --depth=infinity
At revision 1.
$ grep empty .svn/entries
$
However, the document sparse-directories.txt gives the following use case,
which implies --depth=empty switch should work by itself to fold the
subtree. Did I missed something important?
svn co --depth=empty http://.../A Awc
Creates wc Awc, but *empty*.
Awc/.svn/entries this_dir depth-empty
svn up Awc/B:
Since B is not yet checked out, add it at depth infinity.
Awc/.svn/entries this_dir depth-empty
B
Awc/B/.svn/entries this_dir depth-infinity
...
Awc/B/E/.svn/entries this_dir depth-infinity
...
...
svn up --depth=empty Awc/B/E
Remove everything under E, but leave E as an empty directory
since B is depth-infinity.
Awc/.svn/entries this_dir depth-empty
B
D
Awc/B/.svn/entries this_dir depth-infinity
...
Awc/B/E/.svn/entries this_dir depth-empty
...
Thanks
Rui, Guo
> -----Original Message-----
> From: ¹ùÈñ [mailto:timmyguo_at_mail.ustc.edu.cn]
> Sent: Sunday, March 23, 2008 3:55 PM
> To: dev_at_subversion.tigris.org
> Subject: A question about sparse-directories
>
> Hi all,
> I'm digging into the sparse-directories design and do some reading more
> carefully. I find an example in spare-directories.txt showing this:
> svn co --depth=immediates http://.../A Awc2
> Creates wc Awc2 with all files and all subdirectories, but
> subdirectories are *empty*.
> Awc2/.svn/entries this_dir depth-immediates
> B
> C
> Awc2/B/.svn/entries this_dir depth-empty
> Awc2/C/.svn/entries this_dir depth-empty
> ...
>
> svn up Awc/B:
> Since B is not yet checked out, add it at depth infinity.
> Awc/.svn/entries this_dir depth-empty
> B
> Awc/B/.svn/entries this_dir depth-infinity
> ...
> Awc/B/E/.svn/entries this_dir depth-infinity
> ...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: dev-help_at_subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-03-23 10:11:48 CET