Bernd,
What you specify with the line
svn ls -r 1 file:///home/svn/tmp/test/somedir
is:
There is a folder somedir in the latest revision ( HEAD ), and
I want to see its contents as stored in the repository at revision 1.
Since you renamed folder somedir, it doesn't exist anymore in HEAD
hence the failure.
You have two options:
1. If you know the name of folder somedir in HEAD ( ie. someotherdir ),
you can use this:
svn ls -r 1 file:///home/svn/tmp/test/someotherdir
2. You should read about PEG revisions, section in the book:
http://svnbook.red-bean.com/nightly/en/svn.advanced.pegrevs.html
Using the PEG revision, your line reads like this:
svn ls -r 1 file:///home/svn/tmp/test/somedir_at_1
Here you say: Show me the contents at revision 1 of a folder which I know
in revision 1 was called somedir, although that name may have been changed
later.
PEG revisions are not the easiest part of Subversion, but once understood,
I'm sure you'll never forget it again :)
Lieven.
> -----Original Message-----
> From: Bernd Rinn [mailto:bernd@sdf.lonestar.org]
> Sent: zondag 2 oktober 2005 15:52
> To: users@subversion.tigris.org
> Subject: 'svn ls -r' fails when moving directory
>
> 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
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.11.9/116 - Release
> Date: 30/09/2005
>
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.9/116 - Release Date: 30/09/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Oct 2 16:23:41 2005