diff mercurial/commands.py @ 14645:e4cfdff6d3f4

log: do not display hidden changeset We add a --hidden option to display them.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 16 Jun 2011 01:58:00 +0200
parents e59a7b8f521a
children 2e9f379de0ac
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Jun 16 01:57:59 2011 +0200
+++ b/mercurial/commands.py	Thu Jun 16 01:58:00 2011 +0200
@@ -3345,6 +3345,7 @@
      _('show changesets within the given named branch'), _('BRANCH')),
     ('P', 'prune', [],
      _('do not display revision or any of its ancestors'), _('REV')),
+    ('h', 'hidden', False, _('show hidden changesets')),
     ] + logopts + walkopts,
     _('[OPTION]... [FILE]'))
 def log(ui, repo, *pats, **opts):
@@ -3406,6 +3407,8 @@
             return
         if opts.get('branch') and ctx.branch() not in opts['branch']:
             return
+        if not opts.get('hidden') and ctx.hidden():
+            return
         if df and not df(ctx.date()[0]):
             return
         if opts['user'] and not [k for k in opts['user']