Package: subversion
Version: 1.3.2-5
Severity: minor

Hello,

If I have a repository at /tmp/repo, then listing its complete contents at 
any point in time is possible via "svn list -R file:///repo".

However, if I only want to list the contents of "/dir" inside the repository 
with "svn list file:///repo/dir", I run into trouble if "/dir" no longer 
exists ***in the most recent revision***. Specifying an earlier revision 
using the -r switch does not change this. Here is a complete example (Output 
of uninteresting commands not included):

----------------------------------------------------
$ svnadmin create /tmp/repo
$ svn co file:///tmp/repo/ /tmp/checkout
$ cd /tmp/checkout
$ mkdir a
$ date >a/x
$ svn add a
$ svn ci -m "" a
Adding         a
Adding         a/x
Transmitting file data .
Committed revision 1.
$ svn mv a b
$ svn ci -m ""
Deleting       a
Adding         b

Committed revision 2.
$ svn list -r 1 -R file:///tmp/repo/
a/
a/x
$ svn list -r 1 -R file:///tmp/repo/a
svn: File not found: revision 2, path '/a'
----------------------------------------------------

IMHO the last command should work, it should output a single line saying "x". 
The error message "File not found: revision 2, path '/a'" is weird, as I'm 
explicitly telling it to look at revision 1, not 2.

For the current revision, everything works as expected:
$ svn list -r 2 -R file:///tmp/repo/b
x

FWIW, "svnlook tree -r1 /tmp/repo /a" works just fine.

Cheers,

  Richard


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.20
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages subversion depends on:
ii  libapr0                       2.0.55-4   the Apache Portable Runtime
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries
ii  libsvn0                       1.3.2-5    Shared libraries used by Subversio

subversion recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to