You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Jack Repenning <jr...@collab.net> on 2003/06/18 19:41:49 UTC

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

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

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

Posted by Philip Martin <ph...@codematters.co.uk>.
Jack Repenning <jr...@collab.net> writes:

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

That's issue 919.

-- 
Philip Martin

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

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

Posted by Ben Collins-Sussman <su...@collab.net>.
Jack Repenning <jr...@collab.net> writes:

> 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?

Welcome to issue 919.   :-)

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