You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Lee Snett <sn...@unavco.org> on 2008/08/11 21:26:18 UTC

Cannot retrieve deleted file from revision

Can someone explain the "file not found" situation here. The file  
ContextualTestCase.java was deleted inadvertently in rev. 11372.  
Following the documentation for resurrecting deleted files I tried to  
copy revision 11371 but obtained the file not found error. The  
sequence of commands below show that the repository knows of the file  
in rev. 11371 but if referred to explicitly it generates the error.

Subversion 1.3.2
Client - Mac OS X 1.5.1

Thanks for any help.
Lee


~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn list -r 11372
ContextualTestCaseTwo.java
action/
filter/
flows/
listener/
service/
servlet/
util/
~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn list -r 11371
ContextualTestCase.java
ContextualTestCaseTwo.java
action/
filter/
flows/
listener/
service/
servlet/
util/
~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn info
Path: .
URL: svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/pbo/mdm/ 
trunk/test/web/org/unavco/pbo/mdm/webapp
Repository Root: svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/ 
pbo
Repository UUID: d8388fac-dce1-0310-8c67-df29725c549b
Revision: 11373
Node Kind: directory
Schedule: normal
Last Changed Author: snett
Last Changed Rev: 11372
Last Changed Date: 2008-08-11 13:11:57 -0600 (Mon, 11 Aug 2008)

~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn copy -r  
11371  svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/pbo/mdm/ 
trunk/test/web/org/unavco/pbo/mdm/webapp/ContextualTestCase.java ./ 
ContextualTestCase.java
svn: File not found: revision 11373, path '/mdm/trunk/test/web/org/ 
unavco/pbo/mdm/webapp/ContextualTestCase.java'
~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn list -r  
11371  svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/pbo/mdm/ 
trunk/test/web/org/unavco/pbo/mdm/webapp/ContextualTestCase.java
svn: File not found: revision 11373, path '/mdm/trunk/test/web/org/ 
unavco/pbo/mdm/webapp/ContextualTestCase.java'
~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn list -r  
11371  svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/pbo/mdm/ 
trunk/test/web/org/unavco/pbo/mdm/webapp/ContextualTestCaseTwo.java
ContextualTestCaseTwo.java


Lee Snett
PBO Sr. Software Engineer
UNAVCO, Inc.
6350 Nautilus Drive
Boulder, CO 80301

w: 303 381-7577
c: 303 601-6197
snett@unavco.org





Re: Cannot retrieve deleted file from revision

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Aug 11, 2008, at 16:26, Lee Snett wrote:

> Can someone explain the "file not found" situation here. The file  
> ContextualTestCase.java was deleted inadvertently in rev. 11372.  
> Following the documentation for resurrecting deleted files I tried  
> to copy revision 11371 but obtained the file not found error. The  
> sequence of commands below show that the repository knows of the  
> file in rev. 11371 but if referred to explicitly it generates the  
> error.
>
> Subversion 1.3.2

You should update to the latest, Subversion 1.5.1.

> Client - Mac OS X 1.5.1

I assume you mean Mac OS X 10.5.1? If so you should update to the  
latest, Mac OS X 10.5.4.


> ~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn list -r 11372
> ContextualTestCaseTwo.java
> action/
> filter/
> flows/
> listener/
> service/
> servlet/
> util/
> ~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn list -r 11371
> ContextualTestCase.java
> ContextualTestCaseTwo.java
> action/
> filter/
> flows/
> listener/
> service/
> servlet/
> util/
> ~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn info
> Path: .
> URL: svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/pbo/mdm/ 
> trunk/test/web/org/unavco/pbo/mdm/webapp
> Repository Root: svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/ 
> svn/pbo
> Repository UUID: d8388fac-dce1-0310-8c67-df29725c549b
> Revision: 11373
> Node Kind: directory
> Schedule: normal
> Last Changed Author: snett
> Last Changed Rev: 11372
> Last Changed Date: 2008-08-11 13:11:57 -0600 (Mon, 11 Aug 2008)
>
> ~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn copy -r  
> 11371  svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/pbo/ 
> mdm/trunk/test/web/org/unavco/pbo/mdm/webapp/ 
> ContextualTestCase.java ./ContextualTestCase.java
> svn: File not found: revision 11373, path '/mdm/trunk/test/web/org/ 
> unavco/pbo/mdm/webapp/ContextualTestCase.java'
> ~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn list -r  
> 11371  svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/pbo/ 
> mdm/trunk/test/web/org/unavco/pbo/mdm/webapp/ContextualTestCase.java
> svn: File not found: revision 11373, path '/mdm/trunk/test/web/org/ 
> unavco/pbo/mdm/webapp/ContextualTestCase.java'
> ~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn list -r  
> 11371  svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/pbo/ 
> mdm/trunk/test/web/org/unavco/pbo/mdm/webapp/ 
> ContextualTestCaseTwo.java
> ContextualTestCaseTwo.java

You need to use peg revisions, not operative revisions. See this part  
of the book:

http://svnbook.red-bean.com/en/1.4/svn.advanced.pegrevs.html




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

Re: Cannot retrieve deleted file from revision

Posted by David Weintraub <qa...@gmail.com>.
You need to use PEGGED revisions. The problem is that your repository
no longer has the file ContextualTestCase.java in it in the most
recent revision, so it cannot pull up the file in order to find the
revision. Try this:

$ svn cp -r11371
svn+ssh://snett@...unavco.org/pbo/.../webapp/ContextualTestCase.java@11371
./ContextualTestCase.java

The "@11371" refers to the way the repository looked at a particular
revision, so it can find ContextualTestCase.java. Then, the "-r 11371"
tells Subversion what revision you want to copy.

--
David Weintraub
qazwart@gmail.com



On Mon, Aug 11, 2008 at 5:26 PM, Lee Snett <sn...@unavco.org> wrote:
> Can someone explain the "file not found" situation here. The file
> ContextualTestCase.java was deleted inadvertently in rev. 11372. Following
> the documentation for resurrecting deleted files I tried to copy revision
> 11371 but obtained the file not found error. The sequence of commands below
> show that the repository knows of the file in rev. 11371 but if referred to
> explicitly it generates the error.
> Subversion 1.3.2
> Client - Mac OS X 1.5.1
> Thanks for any help.
> Lee
>
> ~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn list -r 11372
> ContextualTestCaseTwo.java
> action/
> filter/
> flows/
> listener/
> service/
> servlet/
> util/
> ~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn list -r 11371
> ContextualTestCase.java
> ContextualTestCaseTwo.java
> action/
> filter/
> flows/
> listener/
> service/
> servlet/
> util/
> ~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn info
> Path: .
> URL:
> svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/pbo/mdm/trunk/test/web/org/unavco/pbo/mdm/webapp
> Repository Root: svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/pbo
> Repository UUID: d8388fac-dce1-0310-8c67-df29725c549b
> Revision: 11373
> Node Kind: directory
> Schedule: normal
> Last Changed Author: snett
> Last Changed Rev: 11372
> Last Changed Date: 2008-08-11 13:11:57 -0600 (Mon, 11 Aug 2008)
> ~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn copy -r 11371
>  svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/pbo/mdm/trunk/test/web/org/unavco/pbo/mdm/webapp/ContextualTestCase.java
> ./ContextualTestCase.java
> svn: File not found: revision 11373, path
> '/mdm/trunk/test/web/org/unavco/pbo/mdm/webapp/ContextualTestCase.java'
> ~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn list -r 11371
>  svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/pbo/mdm/trunk/test/web/org/unavco/pbo/mdm/webapp/ContextualTestCase.java
> svn: File not found: revision 11373, path
> '/mdm/trunk/test/web/org/unavco/pbo/mdm/webapp/ContextualTestCase.java'
> ~/dev/mdm_clean/test/web/org/unavco/pbo/mdm/webapp $ svn list -r 11371
>  svn+ssh://snett@subversion.pbo.unavco.org/pbo/src/svn/pbo/mdm/trunk/test/web/org/unavco/pbo/mdm/webapp/ContextualTestCaseTwo.java
> ContextualTestCaseTwo.java
>
> Lee Snett
> PBO Sr. Software Engineer
> UNAVCO, Inc.
> 6350 Nautilus Drive
> Boulder, CO 80301
> w: 303 381-7577
> c: 303 601-6197
> snett@unavco.org
>
>
>
>

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