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

singl file checkout

From: David L <idht4n_at_gmail.com>
Date: Wed, 29 Oct 2008 09:32:56 -0700

I know that more recent versions of svn have support for checking
out a single file. http://subversion.tigris.org/issues/show_bug.cgi?id=823
is theoretically fixed. But the documentation in the faq still says you
can't do it:

http://subversion.tigris.org/faq.html#single-file-checkout

"Subversion does not support checkout of a single file,
 it only supports checkout of directory structures.
However, you can use 'svn export' to export a single file.
This will retrieve the file's contents, it just won't create a
versioned working copy."

I'm still looking for a way to checkout only the files I need for a project.
To pull a use-case example from bug 823, if I have a directory tree like this:

                                foo/
       bar/ blah/ reallybig/
 src/ include/ src/ inlude/
a.c b.c a.h b.h blah.c blah.h

If I do:

cvs co foo/bar/src/a.c foo/bar/include/a.h foo/blah/include/blah.h

then if I do:
"cvs update foo", I'll only get the changes that were made to a.c, a.h, and
blah.h. It will not bring in b.c, b.h, blah.c and reallybig. If I pass the -d
flag to cvs update then it will bring in the other stuff.

How do I use the new depth features of svn to do the equivalent
of the single cvs checkout line above? Note that I want to replicate
the directory structure above each of the files I check out and I want
each of those directories to be versioned checkouts. For example,
If I cd to foo, and do "svn status", I don't want it to say:
? bar
? blah
I want it to tell me the status of the files below.

Thanks,

         David

PS - not subscribed, please CC responses to me.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-30 01:32:54 CET

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.