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

Re: Copying BASE revision of WC path

From: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-10-22 02:06:47 CEST

Tor Ringstad <torhr@pvv.org> writes:
> Is it possible to directly make a copy of the BASE revision of a WC
> path? That is, get a copy of a locally modified path *without* the
> local modifications?
>
> For instance, one could have expected this to work:
>
> % svn cp -r BASE foo bar
>
> But it will in fact give the following rather curious error message:
>
> svn: A path under version control is needed for this operation

Hey, nice to see you in Munich last week!

This is http://subversion.tigris.org/issues/show_bug.cgi?id=1643. In
latest trunk, it still gets an error, but a different one:

   $ svn info | grep URL
   URL: http://svn.collab.net/repos/svn/trunk
   $ svn up
   At revision 27301.
   $ svn st -q
   $ svn cp -rBASE README NEW_README
   subversion/libsvn_wc/lock.c:601: (apr_err=155007)
   svn: 'http://svn.collab.net/repos/svn/trunk' is not a working copy
   subversion/libsvn_subr/io.c:2626: (apr_err=2)
   svn: Can't open file 'http://svn.collab.net/repos/svn/trunk/.svn/entries':
        No such file or directory
   $

I don't have time to work on it right now, but if you felt like having
a look at it, I suspect the cause would not be too hard to track down.
Even just adding a regression test would be helpful.

Best,
-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 22 02:07:05 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.