From: Jakub Narebski <jnareb@gmail.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Aghiles <aghilesk@gmail.com>,
Sverre Rabbelier <srabbelier@gmail.com>,
git list <git@vger.kernel.org>,
mercurial list <mercurial-devel@selenic.com>
Subject: Re: potential improvement to 'git log' with a range
Date: Sun, 11 Apr 2010 14:32:49 -0700 (PDT) [thread overview]
Message-ID: <m3tyrhfzg8.fsf@localhost.localdomain> (raw)
In-Reply-To: <alpine.LFD.2.00.1004091807220.3558@i5.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> writes:
> On Fri, 9 Apr 2010, Aghiles wrote:
> >
> > Oh, I should have read the documentation. I was certain that ".." stands
> > for a range but it is a ... complement.
>
> Well, technically ".." means two different things
>
> - for "set operations" (ie "git log" and friends) it's the "relative
> complement" of two sets (or "'reachable from A' \ 'reachable from B'").
>
> - for "edge operations" (ie "git diff" and friends) it's just two
> end-points (aka "range"). A diff doesn't work on sets, it only works on
> the two endpoints.
[...]
> Most SCM's really talk about "ranges". Once you think in those terms,
> complex history doesn't work. Git very fundamentally is much about set
> theory, and "ranges" is a bad word to use.
For example from I have got from asking on #mercurial IRC channel on
FreeNode (a bit of self promotion: I have done this research to write
an answer to "Git and Mercurial - Compare and Contrast" question on
StackOverflow[1]), Mercurial implements its ".." equivalent in the
term of _numeric range_, even for "hg log" (sic!). It turns revision
identifiers used in range (-r <rev1>:<rev2>) to LOCAL number of
revision, and generates range based on numeric range, IIRC inclusive
on both sides (in Git range is exclusive from bottom, inclusive from
top).
Which is plain useless for anything but linear subsets of history
(compare e.g. "master..next", which in Git shows everything in "next"
that is not in "master"; "master" and "next" are not direct
descendants of one oanother, at least not usually).
[1] http://stackoverflow.com/questions/1598759/git-and-mercurial-compare-and-contrast/1599930#1599930
P.S. I wonder if Mercurial development list is subscribe-only...
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2010-04-11 21:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-09 23:24 potential improvement to 'git log' with a range Aghiles
2010-04-09 23:33 ` Santi Béjar
2010-04-09 23:33 ` Sverre Rabbelier
2010-04-10 0:13 ` Aghiles
2010-04-10 0:16 ` Sverre Rabbelier
2010-04-10 1:20 ` Linus Torvalds
2010-04-11 20:31 ` Aghiles
2010-04-11 21:32 ` Jakub Narebski [this message]
2010-06-23 17:05 ` Martin Geisler
2010-06-23 18:02 ` Jakub Narebski
2010-06-23 19:19 ` Martin Geisler
2010-06-23 21:24 ` Jakub Narebski
2010-06-23 22:04 ` Martin Geisler
2010-06-23 19:36 ` Jay Soffian
2010-06-23 20:26 ` Junio C Hamano
2010-06-23 20:45 ` Jay Soffian
2010-06-24 20:31 ` Junio C Hamano
2010-06-24 22:49 ` Jay Soffian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3tyrhfzg8.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=aghilesk@gmail.com \
--cc=git@vger.kernel.org \
--cc=mercurial-devel@selenic.com \
--cc=srabbelier@gmail.com \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.