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

Checkout files from a deleted/moved directory: problem

From: Jean-Yves Avenard <jyavenard_at_gmail.com>
Date: 2006-02-23 14:54:07 CET

Hi

Today I've hit a wall and I can't find an easy way around it.

Around 3 years ago, I re-arranged our SVN repository and cleaned up some
directories.
but mainly just moved some directories around.

Today I tried to checkout those files as it was 3 years and I couldn't find
an easy way around it. I have checked both the Subversion handbook and the
FAQ (especially: "
I'm trying to look at an old version of my file, but svn says something
about "path not found". What's going on?"none of which answer my problem..

svn co -r revision# http://svn/path/to/delete_path/deletedfile

Will give me the error:
svn: '/svn/path/!svn/bc/3660/trunk/path/file/' path not found

I can only recoved deleted files as long as they are located in a directory
that still exist in the current version. If the path has been changed then
svn co won't work.

For example:
$ svn mkdir -m "test" https://svn.com/svn/trunk/foo

Committed revision 3633.
$ svn mkdir -m "test" https://svn.com/svn/trunk/foo/foo2

Committed revision 3634.
elrond:~/Projects/SVN/hp/Projects avenardj$ svn mkdir -m "test"
https:/svn.com/svn/trunk/foo/foo2/foo3

Committed revision 3635.
$ svn co https://svn.com/svn/trunk/foo
A foo/foo2
A foo/foo2/foo3
Checked out revision 3635.
so far so good.

$ svn move -m "test" https://svn.com/svn/trunk/foo
https://svn.com/svn/trunk/foo2

Committed revision 3636.

So now foo has been renamed as foo2.

Now let's try to extract the earlier version of trunk/foo, as it was in
revision 3635.
$ svn co -r 3635 https://svn.com/svn/trunk/foo
subversion/libsvn_ra_dav/util.c:780: (apr_err=175007)
svn: REPORT request failed on '/svn/!svn/bc/3636/trunk/foo'
subversion/libsvn_ra_dav/util.c:728: (apr_err=175007)
svn: '/svn/!svn/bc/3636/trunk/foo' path not found

This shouldn't happen.

However, svn copy can work with the old path:
Example: if I do:
#svn co http://svn/path/to/newdirectory
#cd newdirectory
then
#svn copy http://svn/path/to/deletedfile deletedfile

Then it will find it.

svn copy forces me to extract the file in a working copy, obviously this is
not what I want to do, I want to check out a whole image as it was 3 years
ago, it doesn't let me do this.

Did I miss anything? Any ideas?
What can I do to recover an old deleted/moved version?

Thank you for your help
Please excuse me in advance if this is a problem that has been raised before
but I've googled for over one hour without finding anything to answer what I
posted above.

Cheers
Jean-Yves
Received on Thu Feb 23 14:56:08 2006

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.