On Aug 13, 2008, at 10:57, David Weintraub wrote:
> On Wed, Aug 13, 2008 at 6:04 AM, amy lin /tw.tpe-it wrote:
>
>> I using TortoiseSvn to checkout,I want to check out only 1 single
>> file,Due
>> to in our repository exist hundred of file,I only want to checkout
>> only 1
>> file..But When I
>> using checkout command though TortoiseSvn,got the error as below:
>>
>> Error URL 'http://subver.com/svn/d2k/ECS/1866031.in'refers to a
>> file,not a
>> directory
>>
>> How can I do it??? or is no way to checkout single file??
>
> If you're using revision 1.5, you can do sparse checkouts. Let's say I
> want to checkout only the file svn://localhost/module/trunk/build.xml
> in a directory called "workdir"
>
> $ svn co --depth=empty svn://localhost/module/trunk workdir
> $ cd workdir
> $ svn update build.xml
>
> The first command creates a working directory with no files in it. It
> is a checkout of svn://localhost/module/trunk -- just empty.
>
> The "svn update build.xml" inside the workdir brings in the file
> build.xml from the server. You now have a Subversion working directory
> with only a single file in it.
Sounds like the FAQ is out of date:
http://subversion.tigris.org/faq.html#single-file-checkout
Perhaps you could write a patch to the FAQ with this new information?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-13 22:01:12 CEST