potential improvement to 'git log' with a range

Martin Geisler mg at lazybytes.net
Wed Jun 23 14:19:17 CDT 2010


Jakub Narebski <jnareb at gmail.com> writes:

> On Wed, 23 Jun 2010, Martin Geisler wrote:
>
>> This is fixed with Mercurial 1.6: we now have a query language where
>> 'X..Y' (or 'X::Y') is understood as the set of changesets that are
>> both descendents of X and ancestors of Y.
>
> Thanks. It looks like Mercurial's 'X::Y' is equivalent to Git's
> '--ancestry-path X..Y' (the --ancestry-path option is a new feature).

Yeah, it is equivalent to --ancestry-path. I had no idea Git's range
operator worked the way it does :-)

For mercurial-devel: 'X..Y' is a shorthand for '^X Y', which in turn
means ancestors of Y, excluding ancestors of X (and excluding X).

>>> [1]
>>> http://stackoverflow.com/questions/1598759/git-and-mercurial-compare-and-contrast/1599930#1599930
>
> Fixed. Could you please take a look if it is correct, and if there are
> errors, either correct it yourself, or ask me to do it (either via
> comments for this question, or via email)? Thanks in advance.

Yes, its correct now. But would you object if I or someone else took out
all those personal opinions and rewrote it from a neutral point of view?

> P.S. Isn't mercurial-devel subscribe only?

No, not really -- you will be whitelisted the first time you post.

-- 
Martin Geisler

Mercurial links: http://mercurial.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100623/1a818fbd/attachment.pgp>


More information about the Mercurial-devel mailing list