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

'svn ls -r' fails when moving directory

From: Bernd Rinn <bernd_at_sdf.lonestar.org>
Date: 2005-10-02 15:51:48 CEST

I've got a pretty basic problem and I suspect that the cause of the
problem is sitting in front of the monitor ;-) However, I've got no clue
what I'm doing wrong.

I am using 'svn 1.2.3 (r15833)' on Linux with a fsfs repository. Here is
what I am doing:

1. Create a new repository test (-> r0)
2. Create directory 'somedir' in the new repository (-> r1)
3. Rename 'somedir' to 'someotherdir' (-> r2)
4. Try to list somedir in r1 by using 'svn ls -r1'

Observed behavior: subversion fails with "File not found" revision 2,
path '/somedir'". That is of course true but I was asking for revision
1, not revision 2. (Holds true also for the checkout command.)

Here are the commands that I'm using (***COMMENT: *** are, as you might
expect, just comments):

svn@svn:~/tmp> svnadmin create test

svn_at_svn:~/tmp> svn ls file:///home/svn/tmp/test
***COMMENT: nothing there, just a fresh repository***

svn@svn:~/tmp> svn mkdir -m "create some directory"
file:///home/svn/tmp/test/somedir

Committed revision 1.

svn_at_svn:~/tmp> svn ls file:///home/svn/tmp/test/somedir
***COMMENT: somedir has been successfully created and is empty, so
nothing to list here***

svn@svn:~/tmp> svn mv -m "move some directory to some other directory"
file:///home/svn/tmp/test/somedir file:///home/svn/tmp/test/someotherdir

Committed revision 2.

svn_at_svn:~/tmp> svn ls file:///home/svn/tmp/test/somedir
svn: URL 'file:///home/svn/tmp/test/somedir' non-existent in that revision
***COMMENT: This failure is expected***

svn_at_svn:~/tmp> svn ls -r1 file:///home/svn/tmp/test
somedir/
***COMMENT: Here you can see that 'somedir' is present in revision 1***

svn_at_svn:~/tmp> svn ls -r1 file:///home/svn/tmp/test/somedir
svn: File not found: revision 2, path '/somedir'
***COMMENT: This is the failure I don't understand, since I'm asking for
revision 1, not 2***

svn@svn:~/tmp> svn --version
svn, version 1.2.3 (r15833)
   compiled Aug 29 2005, 08:05:10

What is my mistake?

-- 
Bernd Rinn
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Oct 2 15:53:11 2005

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.