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

Re: Checking out a single file with 0.36 ...

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2004-01-18 16:55:26 CET

On Jan 18, 2004, at 8:01 AM, Ron Bieber wrote:

> This is the first time I've tried this. I want to edit a single file
> in the repository. Rather than check out the full directory that the
> file is in, I want to pull down the file, edit it, and commit it. So,
> I type the following command:
>
> ~/temp> svn co
> http://subversion.bieberlabs.org/svn/main/trunk/deploy/deploy.c .
>
> I get the following error:
>
> svn: REPORT request failed on '/svn/main/!svn/vcc/default'
> svn:
> Attempted to create entry in non-directory parent
>
>
> Leaving off the final '.' argument in the checkout command actually
> creates a directory called deploy.c rather than pulling the file from
> the repository into the current directory.
>
> Is this expected behavior?

You can't check out a single file, the smallest part of a repository
you can check out is a directory. This is pretty much intrinsic to
much of Subversion's design at the moment, and is the way things are
'supposed' to work. Of course it would be nice if it didn't create
that directory when you leave off the ., and it would be nice if the
error message was less cryptic.

Patches to fix both issues are more than welcome.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jan 18 16:56:09 2004

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.