diff -r f3a40fd7008c -r e4cfdff6d3f4 mercurial/commands.py --- 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']