[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: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 13 Aug 2008 11:57:43 -0400

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.

--
David Weintraub
qazwart_at_gmail.com
On Wed, Aug 13, 2008 at 6:04 AM, amy lin /tw.tpe-it <amy_lin_at_wanhai.com> wrote:
> Dear Sir:
>
> May I ask 1 question as below:
>
> 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??
>
> Pls free time to reply me if you can.
>
> Sincerely Yours,
> Amy Lin
> I.T Division. Information Application Dept.
> WAN HAI LINES LTD.
> TEL:886 2 2567-7961 Ext. 7263
>
>
> Disclaimer :
> The information contained in this communication and attachment is
> confidential
> and is for the use of the intended recipient only. Any disclosure, copying
> or
> distribution of this communication without the sender's consent is strictly
> prohibited.
> If you are not the intended recipient, please notify the sender and delete
> this
> communication entirely without using,retaining, or disclosing any of its
> contents.
>
> This communication is for information purposes only and shall not be
> construed as an
> offer or solicitation of an offer or an acceptance or a confirmation of any
> contract
> or transaction. All data or other information contained herein are not
> warranted to
> be complete and accurate and are subject to change without notice.Any
> comments or
> statements made herein do not necessarily reflect those of WAN HAI LINES
> LTD.
> or any of its affiliates.
>
> Internet communications cannot be guaranteed to be virus-free. The recipient
> is responsible
> for ensuring that this communication is virus free and the sender accepts no
> liability
> for any damages caused by virus transmitted by this communication.
>
>
---------------------------------------------------------------------
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 17:58:19 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.