add --only-merges (-m) log
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Mon, 24 Oct 2005 15:37:45 -0700
changeset 1436 db6d7b4005ba
parent 1435 22b44fd9a166
child 1437 ea51d296085f
add --only-merges (-m) log
mercurial/commands.py
--- a/mercurial/commands.py	Mon Oct 24 15:37:20 2005 -0700
+++ b/mercurial/commands.py	Mon Oct 24 15:37:45 2005 -0700
@@ -1281,6 +1281,8 @@
                        if p != nullid]
             if opts['no_merges'] and len(parents) == 2:
                  continue
+            if opts['only_merges'] and len(parents) != 2:
+                 continue
 
             br = None
             if opts['keyword']:
@@ -1903,6 +1905,7 @@
           ('k', 'keyword', [], _('search for a keyword')),
           ('r', 'rev', [], _('revision')),
           ('M', 'no-merges', None, _("do not show merges")),
+          ('m', 'only-merges', None, _("show only merges")),
           ('p', 'patch', None, _('show patch'))],
          _('hg log [-I] [-X] [-r REV]... [-p] [FILE]')),
     "manifest": (manifest, [], _('hg manifest [REV]')),