From: Junio C Hamano Date: Tue, 27 Oct 2009 00:18:33 GMT Subject: Re: git vs hg commit counts? Message-ID: <7v8wexd6zq.fsf@alter.siamese.dyndns.org> In-Reply-To: <1256602127.29938.8.camel@Joe-Laptop.home> Joe Perches 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?