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

Re: deleted directories in 1.2.x?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-07-07 16:16:51 CEST

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

And here's the section of the 1.1 book that explains peg revisions:


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
Received on Thu Jul 7 16:21:14 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.