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

Re: can I checkout only a revision files ?

From: David Weintraub <qazwart_at_gmail.com>
Date: Wed, 20 Oct 2010 09:47:16 -0400

On Wed, Oct 20, 2010 at 9:17 AM, Andrea Antonio Maleci
<A.Maleci_at_iwbank.it> wrote:
> Is it possible to checkout only files (not patch, but entire files) from a
> specific revision ?

You can use the -r parameter on a checkout or update to specify the
revision. You cannot checkout a single file, but you can checkout the
directory it is in with no files and then update just that one file:

$ # Checks out the directory, but with no files
$ svn co -r $rev --depth empty http://svn/repos/project/dir localdir

$ # Now update the file you want
$ cd localdir
$ svn update myfile

Or, you can checkout just a directory, but without the subdirectories:

$svn co -r $rev --depth files http://svn/repos/project/dir localdir

-- 
David Weintraub
qazwart_at_gmail.com
Received on 2010-10-20 15:47:56 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.