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

Re: Ask question---> Can checkout only single file???

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Wed, 13 Aug 2008 15:00:30 -0500

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:


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

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.