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

Re: How to checkout a single file from the repository

From: Matt Madrid <admiralcap_at_gmail.com>
Date: 2007-07-16 10:20:33 CEST

No, unfortunately there isn't. There are ways to get a single file
out, but not back in without having a "working copy" of the whole
directory somewhere.

For instance you could use "svn export" to export a copy of the file
somewhere. You could also create a branch and copy the single file
into the branch, and checkout only the branch. However, to merge your
changes, you would still need a local WC of the directory.

My guess is that you must have a working copy already somewhere. How
would you have put the files in in the first place. Maybe you did an
"svn import" and then deleted the directory from the file system. Or
maybe you have a working copy on one machine, and want to do your
edits on a different machine without checking everything out. In that
case, I would do the branch thing, then just check out your branch.
Make your changes, and the merge with the main directory when you get
back to the machine with the working copy.

Hope this helps..

Matt M

On 7/15/07, Ryan Schmidt <subversion-2007b@ryandesign.com> wrote:
> On Jul 16, 2007, at 00:33, nure wrote:
>
> > Is there a way to checkout a single file from the repository and
> > commit it
> > to the repository again? I dump all my data into repository and have a
> > single directory for the data. I cannot afford to checkout whole
> > directory
> > to modify a single file due to large number of files in the directory.
>
> No. The smallest unit you can check out is a directory.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 16 10:20:45 2007

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.