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

Re: How to check out a single file

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Wed, 9 Dec 2009 09:40:58 +0000

2009/12/9 MM <alpha_m_omega_at_yahoo.com>:
> I am very new using SVN...
> I am trying hard to check out one file (not the folder) .. is it
> possible to check out a single file? if yes, HOW?
> Thanks all!

Not really, although you can get something close. Subversion stores
meta-data in a sub folder called .svn, so it is folder-based rather
than single file based.

Your nearest equivalent is to use sparse checkouts. Checkout the
parent directory, but instead of 'fully recursive', select 'only this
item'. This gives you an empty parent directory. Now right click on
the folder and select RepoBrowser. This will list all children. Right
click on the file you want and select Update to Revision. This will
add that one file to your working copy.

Alternatively if you only want to see the content of a file and not
make a checkout that you can commit changes from, just use Repo
Browser from anywhere, enter the URL of the parent folder, then right
click on the file of interest and select Save As ...

Simon

-- 
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2428795
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-12-09 10:41:09 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.