You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jim Paris <ji...@jtan.com> on 2005/07/07 04:49:13 UTC
deleted directories in 1.2.x?
I can't access deleted directories with a 1.2.0 or 1.2.1 client:
svnadmin create testrepo
svn mkdir file://`pwd`/testrepo/x -m 'mkdir'
svn rm file://`pwd`/testrepo/x -m 'rm'
svn ls -r1 file://`pwd`/testrepo
svn ls -r1 file://`pwd`/testrepo/x
The first "svn ls" gives expected output:
x/
while the second seems to ignore -r:
svn: File not found: revision 2, path '/x'
It works fine with 1.1.4, even against a 1.2.0 dav_svn server, so
either something is broken, or I missed the memo about the change in
usage.
-jim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: deleted directories in 1.2.x?
Posted by Ben Collins-Sussman <su...@collab.net>.
On Jul 6, 2005, at 11:49 PM, Jim Paris wrote:
> I can't access deleted directories with a 1.2.0 or 1.2.1 client:
>
> svnadmin create testrepo
> svn mkdir file://`pwd`/testrepo/x -m 'mkdir'
> svn rm file://`pwd`/testrepo/x -m 'rm'
> svn ls -r1 file://`pwd`/testrepo
> svn ls -r1 file://`pwd`/testrepo/x
>
> The first "svn ls" gives expected output:
> x/
> while the second seems to ignore -r:
> svn: File not found: revision 2, path '/x'
Here's the memo, from CHANGES:
* add peg-rev syntax to co/blame/cat/ls/pget/plist/export (issue
#1093)
And here's the section of the 1.1 book that explains peg revisions:
http://svnbook.red-bean.com/en/1.1/ch07s03.html
Yes, the behavior changed, in the sense that we considered the older
behavior to be a bug. When you run 'svn ls -rX URL', it's equivalent
to running 'svn ls -rX URL@HEAD'. The algorithm that is followed is:
1. go to URL@HEAD
2. trace the object backwards to revision X
3. return that object.
So if the directory had a different name in revision X, you'd still
see it.
This is the general way peg-revisions work:
svn subcommand -r X path-or-URL@PEGREV
At this time, I believe every command uses peg-revisions now, except
for 'svn log', which is still an open bug we're working on.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org