Add an option to the command 'hg log' in order to show merges only

Thomas Arendsen Hein thomas at intevation.de
Fri Jul 1 18:41:15 UTC 2005


* Matt Mackall <mpm at selenic.com> [20050701 20:18]:
> On Fri, Jul 01, 2005 at 08:09:28PM +0200, Goffredo Baroncelli wrote:
> > the patch below add an option ( -m ) to the command 'hg log' in
> > order to show merges only;
> > 
> > Matt, in your TODO you say that a merge have two parents or
> > parent != changeset-1; ok for the first clauses, but parent !=
> > changeset-1 happens also in a pull from another repository; so
> > my patch checks only the number of parents.
> 
> You're right. That confusion came from TAH.

My confusion lasted until some seconds ago :)

> I think it'd be more interesting to have a switch that did the
> opposite. Merges are generally content-free. Can you add that to your
> patch? Perhaps -M?

+1

Thomas

-- 
Email: thomas at intevation.de
http://intevation.de/~thomas/



More information about the Mercurial mailing list