From: Junio C Hamano <gitster@pobox.com>
To: Joe Perches <joe@perches.com>
Cc: LKML <linux-kernel@vger.kernel.org>, git <git@vger.kernel.org>,
mercurial@selenic.com, Marti Raudsepp <marti@juffo.org>
Subject: Re: git vs hg commit counts?
Date: Mon, 26 Oct 2009 17:18:33 -0700 [thread overview]
Message-ID: <7v8wexd6zq.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <1256602127.29938.8.camel@Joe-Laptop.home> (Joe Perches's message of "Mon\, 26 Oct 2009 17\:08\:47 -0700")
Joe Perches <joe@perches.com> writes:
> I'm comparing linux-kernel git vs hg repositories.
>
> While testing some changes to scripts/get_maintainer.pl,
> I noticed that git and hg have different commit counts
> for the same files.
>
> For instance:
>
> $ git log --since=1-year-ago -- MAINTAINERS | \
> grep -P "^commit [0-9a-f]{40,40}$" | wc -l
> 514
>
> $ hg log --template="commit {node}\n" --date -365 -- MAINTAINERS | \
> grep -P "^commit [0-9a-f]{40,40}$" | wc -l
> 601
>
> Anyone have any understanding why?
We simplify a merge history by discarding one branch when the merge result
matches one of the parents. Does "hg" know how to do that as well?
next prev parent reply other threads:[~2009-10-27 0:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-27 0:08 git vs hg commit counts? Joe Perches
2009-10-27 0:18 ` Junio C Hamano [this message]
2009-10-27 0:23 ` Joe Perches
2009-10-27 1:16 ` Marti Raudsepp
2009-10-27 4:14 ` Joe Perches
2009-10-27 1:14 ` Jakub Narebski
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=7v8wexd6zq.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marti@juffo.org \
--cc=mercurial@selenic.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox