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

Can't ls or co inside deleted trees - even with -r $oldver?

From: Peter Valdemar Mørch <swp5jhu02_at_sneakemail.com>
Date: 2006-01-12 11:07:28 CET

If I delete a directory in revision 3, then I expect to still be able to
ls and check out that directory in revision 2 as long as I specify

svn ls -r 2 file:///path/to/deleted/directory
   or
svn co -r 2 file:///path/to/deleted/directory

Right?

However, both fail on svn, version 1.2.3 (r15833) with this error message:
svn: File not found: revision 3, path 'to/deleted/directory'

No, I know it doesn't exist in revision *3*. Thats why I specified
revision *2*. If I co like this:

svn co -r 2 file:///path/to/

I do get a to/deleted/directory of revision 2

Wassup? Is this a bug? How else can I examine a 10k file somewhere in a
deleted tree without checking out GB-s of stuff in file:///path/to/ ?

Is this a documented "regression" from svn, version 1.0.1 (r9023), where
it worked? (It *does* work on 1.0.1 - I checked)

At least, this is a change of behaviour in the client. If I set up a
repos on the 1.0.1 server, the 1.2.3 client fails with:
svn: path 'svn+ssh://cmdev/test/dir1/dir2' doesn't exist in revision 3
(Different error!)
But the 1.0.1 client succeeds.

How else do I get at -r 2 file:///path/to/deleted/directory ?

Thank you for reading this far,

Peter

Reproduction recipe:
------------------------------------------------------------

#!/bin/bash

svnadmin create repos
repos=file://`pwd`/repos

# Creates v. 1
svn mkdir -m "Creating dir1" $repos/dir1

# Creates v. 2
svn mkdir -m "Creating dir2" $repos/dir1/dir2

# Creates v. 3
svn rm -m "Removing dir2 again" $repos/dir1/dir2

# Just shows what happened when
svn log -v $repos

# This does in fact show that there is a dir2
svn ls -v -r 2 $repos/dir1

# But these fail with error message:
# svn: File not found: revision 3, path '/dir1/dir2'

svn ls -r 2 $repos/dir1/dir2
svn co -r 2 $repos/dir1/dir2

-- 
Peter Valdemar Mørch
http://www.morch.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 12 11:12:12 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.