You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by nure <nu...@gmail.com> on 2007/07/16 05:33:18 UTC

How to checkout a single file from the repository

Hi,
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.
nure
-- 
View this message in context: http://www.nabble.com/How-to-checkout-a-single-file-from-the-repository-tf4084601.html#a11609387
Sent from the Subversion Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How to checkout a single file from the repository

Posted by Matt Madrid <ad...@gmail.com>.
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 <su...@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

Re: How to checkout a single file from the repository

Posted by Ryan Schmidt <su...@ryandesign.com>.
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

Re: How to checkout a single file from the repository

Posted by Erik Huelsmann <eh...@gmail.com>.
On 7/16/07, nure <nu...@gmail.com> wrote:
>
> Hi,
> 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.

Not at the moment. There's work being done in this area which should
be released with 1.5, but there's no release scheduled yet.


HTH,


Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org