From: Joe Perches Date: Tue, 27 Oct 2009 00:23:05 GMT Subject: Re: git vs hg commit counts? Message-ID: <1256602985.29938.18.camel@Joe-Laptop.home> In-Reply-To: <7v8wexd6zq.fsf@alter.siamese.dyndns.org> On Mon, 2009-10-26 at 17:18 -0700, Junio C Hamano wrote: > > $ 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. Thanks Junio. > Does "hg" know how to do that as well? I don't know. I was hoping to get equivalent results though. Anyone know how?