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

can't get file back after "svn up -r"?

From: Jack Repenning <jrepenning_at_collab.net>
Date: 2003-06-18 21:41:49 CEST

Fooling around with mixed-revision wc's, I reached a state where a
file has disappeared (expected) and I can't get it back (NOT!). Is
this a bug in svn, or just in me?

Basic history: in this directory, the file .bashrc was created in rev
3; the repo is now at rev4, and the directory is current at the start
of the experiment:

>(dhcp90:/../jrepenning)
> > svn info
>Path:
>Url: http://jrepenning.wedged.sp.collab.net/svn/jrepenning/trunk/home
>Repository UUID: 2f7f54d4-51c0-0310-a23f-a23faca88ab5
>Revision: 4
>Node Kind: directory
>Schedule: normal
>Last Changed Author: jrepenning
>Last Changed Rev: 4
>Last Changed Date: 2003-06-17 13:46:59 -0700 (Tue, 17 Jun 2003)
>Properties Last Updated: 2003-06-17 13:49:13 -0700 (Tue, 17 Jun 2003)

I do an "svn up" to an older revision, of just the one file. This
causes it to be deleted from the WC, which is all copacetic:

>(dhcp90:/../jrepenning)
> > svn up -r 2 .bashrc
>D .bashrc
>Updated to revision 2.

Just to keep this recipe honest, I'll mention that I did a few more
"svn up"s. These produce a message I've never seen before, but it
seemed sensible in context:

>(dhcp90:/../jrepenning)
> > svn up -r 0 .bashrc
>svn: warning: svn_wc_is_wc_root: '.bashrc' is not a versioned resource
>(dhcp90:/../jrepenning)
> > svn up -r 1 .bashrc
>svn: warning: svn_wc_is_wc_root: '.bashrc' is not a versioned resource
>(dhcp90:/../jrepenning)
> > svn up -r 2 .bashrc
>svn: warning: svn_wc_is_wc_root: '.bashrc' is not a versioned resource

However, when I decide I've had enough fun and want to get back to
normalcy, I find I can't. This is quite unexpected!

>(dhcp90:/../jrepenning)
> > svn up .bashrc
>svn: warning: svn_wc_is_wc_root: '.bashrc' is not a versioned resource
>(dhcp90:/../jrepenning)
> > svn up
>At revision 4.
>(dhcp90:/../jrepenning)
> > ll .bashrc
>ls: .bashrc: No such file or directory

-- 
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94015
o: 650.228.2562
c: 408.835-8090
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 18 21:42:42 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.