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

Re: how to revive a deleted directory? (+ svn segfault)

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-11-24 01:07:20 CET

Joey Hess wrote:
>
> joey_at_kite:~>svn cp -r PREV file:///svn/joey/flashybrid-trunk file:///svn/joey/foo
> svn: A path under revision control is needed for this operation
> svn: svn_client__get_revision_number: need a version-controlled path to fetch local revision info.

This error message is produced because "PREV" means the revision before your working copy's base revision. It doesn't mean the revision before HEAD. "PREV" and "BASE" can only be used when there is a working copy for them to refer to.

> I tried checking out the base of my repository, and do a svn cp from
> PREV, but it fails miserably:
>
> joey_at_kite:~/tmp>svn co -N file:///svn/joey/
> A joey/README
> joey@kite:~/tmp/joey>svn cp -r PREV flashybrid-trunk foo
> zsh: segmentation fault svn cp -r PREV flashybrid-trunk foo

That's interesting. I don't get a segfault when I try to do a similar thing, but then I'm running the head version of Subversion, and the segfault bug might have been fixed already.

~/tmp> svn co -N file:///home/julianfoad/vcs/sandbox/
A sandbox/eol-test
A sandbox/f
A sandbox/gnudiff
A sandbox/space in name
A sandbox/t
A sandbox/x
Checked out revision 47.
~/tmp> cd sandbox/
~/tmp/sandbox> svn cp -r PREV cyc foo
svn: Tried a versioning operation on an unversioned resource
svn: 'cyc' is not under version control

In my case, "cyc" is a directory that existed in the repository up to revision 46 but was deleted in revision 47 (HEAD). I am assuming that this corresponds to your scenario.

Nevertheless, I think there might be a bug in non-recursive checkouts. After the checkout, if I run "svn status -u" I expect to see the directory names (that are in the repository but not checked out) listed with a "*", but I don't see them at all.

I can't find a way to get such a directory back into the WC except with "merge" like Erik suggested. I think "copy" ought to work too.

I am posting to the development mailing list about this, with the subject "Non-recursive checkout is broken?"

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 24 01:06:05 2003

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.