Re: Minor off-by-one in the Book (merging -r406:HEAD should be r405:HEAD)
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-05-31 22:47:41 CEST
Nathan Sharp wrote:
In the particular example that you are commenting on, where r406 is the first merge, I don't think that the given "r406:something" is "less accurate" than "r405:" would be, but rather is the more correct alternative. When performing the second merge, the first merge is not one of the changes that you want to include in the second merge. If, however, there is or were to be an example of merging two contiguous sets of historical revisions, then of course "rX:Y" and "rY:Z" would be necessary.
I agree that it is easy for a newbie to commit an off-by-one error with regards to revision numbers because of the confusion between "the changes made between revision X and revision Y" and "the changes that created revision X, up to and including the changes that created revision Y". Both of these meanings are expressed by the same syntax "rX:Y" in different commands. The former meaning is how "diff" and "merge" interpret their argument, and the latter is how "log" and "blame" behave. Perhaps we should use different syntaxes for the different meanings (such as "rX-Y" for the former and "rX:Y" for the latter).
I would argue that this semantic distinction needs to be explained clearly in the book, early on. I haven't checked recently to see whether it is explained adequately. If you would like to check and write a patch, that would be grand.
- Julian
> Julian Foad wrote:
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.