----- Original Message -----
> From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
> Sent: Friday, August 17, 2012 10:03 AM
>
> % mkdir d
> % cd d
> % mkdir notes notes/commit-access-templates
> % svn co -q
> http://svn.apache.org/repos/asf/subversion/trunk/notes/commit-access-templates/
> notes/commit-access-templates/
> % svn co -q --force http://svn.apache.org/repos/asf/subversion/trunk/ ./
>
> I don't have a recent build to test with (and the behaviour might have
> changed at some point), but the above is what I try first.
>
> Does that answer your question?
>
Hello Daniel,
Thanks for the reply. I am running 1.6.17 and the above sequence of commands
did not work. The second "checkout" failed even with the --force flag. I
show a copy-and-pasted session below showing my failed attempt.
Even if the second "checkout" had succeeded, it would have just created a full
checkout of the tree under "trunk" but what I was interested in originally was
in creating a "sparse" checkout (not a "full" checkout).
I am still curious if a sparse checkout is possible retroactively, so if you
have any further insights I would appreciate further comments. The example I
showed in my original post is _VERY_ easy to reproduce in your own repository
locally if you want to play around and test possible solutions.
For completeness of the archive, I show my failed copy-and-pasted session
below.
=======================
COPY-AND-PASTED SESSION
=======================
---o---
$ # Show my current directory
$ pwd
/svn-temp
$ # Directory is empty as shown by "find" below
$ find
.
$ # Try suggested commands, starting with mkdir
$ mkdir d
$ cd d
$ mkdir notes notes/commit-access-templates
$ svn co -q http://svn.apache.org/repos/asf/subversion/trunk/notes/commit-access-templates/
notes/commit-access-templates/
$ # So far so good... first checkout successful as shown by "find" below
$ find
.
./notes
./notes/commit-access-templates
./notes/commit-access-templates/.svn
./notes/commit-access-templates/.svn/all-wcprops
./notes/commit-access-templates/.svn/entries
./notes/commit-access-templates/.svn/prop-base
./notes/commit-access-templates/.svn/prop-base/contrib-committer.tmpl.svn-base
./notes/commit-access-templates/.svn/prop-base/full-committer.tmpl.svn-base
./notes/commit-access-templates/.svn/prop-base/partial-committer.tmpl.svn-base
./notes/commit-access-templates/.svn/prop-base/pmc-member.tmpl.svn-base
./notes/commit-access-templates/.svn/props
./notes/commit-access-templates/.svn/text-base
./notes/commit-access-templates/.svn/text-base/contrib-committer.tmpl.svn-base
./notes/commit-access-templates/.svn/text-base/full-committer.tmpl.svn-base
./notes/commit-access-templates/.svn/text-base/partial-committer.tmpl.svn-base
./notes/commit-access-templates/.svn/text-base/pmc-member.tmpl.svn-base
./notes/commit-access-templates/.svn/tmp
./notes/commit-access-templates/.svn/tmp/prop-base
./notes/commit-access-templates/.svn/tmp/props
./notes/commit-access-templates/.svn/tmp/text-base
./notes/commit-access-templates/contrib-committer.tmpl
./notes/commit-access-templates/full-committer.tmpl
./notes/commit-access-templates/partial-committer.tmpl
./notes/commit-access-templates/pmc-member.tmpl
$ # Now we try second "checkout" command
$ svn co -q --force http://svn.apache.org/repos/asf/subversion/trunk/ ./
svn: Failed to add directory 'notes/commit-access-templates': a versioned directory of
the same name already exists
$ # Whooops... command failed even with --force flag
$ svn --version --quiet
1.6.17
$
---o---
Received on 2012-08-17 17:46:09 CEST