You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ray Johnson <ra...@ingenio.com> on 2006/09/26 01:07:16 UTC
Bug in "svn ls -r REV URL"?
I have a repository with an old directory that has been deleted.
I can do the following to see the old directory:
c:> svn ls -r 1000 http://svn/MyRepro/trunk
src/
lib/
old_dir/
I can even get the directory and all of it's children with an export or
checkout or trunk
c:> svn export -r 1000 http://svn/MyRepro/trunk
However, all operations like export, ls, etc. fail when I try to operate
on the old directory itself. For example:
C:\src\temp>svn export -r 1000 http://svn/MyRepro/trunk/old_dir/
svn: REPORT request failed on '/MyRepro/!svn/bc/34291/trunk/old_dir'
svn: '/MyRepro/!svn/bc/34291/trunk/old_dir' path not found
If I understand the error message at all it can't seem to find old_dir
in the HEAD revision. Well duh - I know it's not there.
The bug appears to exist in the fact that isn't properly taking into
account the -r flag when determining if the path even exists.
Ray
Re: Bug in "svn ls -r REV URL"?
Posted by Duncan Booth <du...@suttoncourtenay.org.uk>.
"Ray Johnson" <ra...@ingenio.com> wrote:
> c:> svn ls -r 1000 http://svn/MyRepro/trunk
which means find the folder called 'trunk' in the current revision, go back
to revision 1000 and list its contents. This command is shorthand for:
svn ls -r 1000 http://svn/MyRepro/trunk@HEAD
>
> However, all operations like export, ls, etc. fail when I try to
> operate on the old directory itself. For example:
> C:\src\temp>svn export -r 1000 http://svn/MyRepro/trunk/old_dir/
which means find the folder called 'trunk/old_dir' in the current revision
then go back to revision 1000. Since that folder no longer exists the
command fails.
The command:
svn export -r 1000 http://svn/MyRepro/trunk/old_dir/@1000
means find the folder called 'trunk/old_dir' in revision 1000, then go to
revision 1000 and export it.
Remember that different objects may have had the same names at different
times in your repository.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org