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

Re: bug in Subversion, or do I have unreasonable expectations?

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-09-18 04:33:08 CEST

On Sep 13, 2005, at 18:23, Mike Linda wrote:

> On Monday 12 September 2005 21:00, Ben Collins-Sussman wrote:
>
>> If you type
>> svn checkout -rX URL
>> That's equivalent to typing
>> svn checkout -rX URL@HEAD
>> But if URL@HEAD doesn't exist, you get the error you're seeing.
>> What you want to type is
>> svn checkout URL@X
>
> First, let me say that I understand (now) the need for @PEGREV for
> cases
> where objects are renamed and moved around, yet still present in
> some form
> in HEAD. Considering and example "svn co -rX URL@Y" (where X and Y
> are
> different) makes sense, especially when the object had one (perhaps
> widely
> known) name in revision Y and a different (perhaps obscure) name in
> revision X -- so Subversion traces back from Y, through the rename,
> to X.
> Then it makes sense for "svn co -rX URL" to be same as "svn co -rX
> URL@HEAD". OK, so far so good.
>
> But... It seems to me that Subversion could be just a little
> smarter for
> cases where the object cannot be found in HEAD. Instead of raising an
> error condition, could Subversion go one step further and try
> looking only
> at version X (given "svn co -rX URL")? This is a case where there
> is no
> ambiguity and so no additional information is necessary.
> Obviously, there
> is a cost/benefit consideration, but I suspect many users migrating
> from
> CVS would run into this (since "-rX" was all-mighty in CVS).

The only harm I can see is that users will be that much more confused
when they finally reach the case where they need peg revisions. ("But
it always worked without that before...")

But judging from the number of practically identical questions on the
list in the past month or two, it does seem like a whole lotta people
don't "get" peg revisions. I guess they get it well enough once
they're referred to the correct section in The Book, but either
they're not understanding the purpose of per revisions when they
initially read about them in The Book, or they don't even read that
section before asking.

I have yet to need to "go back in time" like this with our
repository, and I fully expect, when that time comes, that I too will
forget about peg revisions.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Sep 18 04:34:52 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.