diff -r ae0629161090 -r 6f71167292f2 mercurial/commands.py --- a/mercurial/commands.py Sat Jul 14 18:55:21 2012 +0200 +++ b/mercurial/commands.py Sat Jul 14 19:09:22 2012 +0200 @@ -3928,6 +3928,7 @@ ('P', 'prune', [], _('do not display revision or any of its ancestors'), _('REV')), ('', 'hidden', False, _('show hidden changesets (DEPRECATED)')), + ('G', 'graph', None, _("show the revision DAG")), ] + logopts + walkopts, _('[OPTION]... [FILE]')) def log(ui, repo, *pats, **opts): @@ -4012,6 +4013,8 @@ Returns 0 on success. """ + if opts.get('graph'): + return cmdutil.graphlog(ui, repo, *pats, **opts) matchfn = scmutil.match(repo[None], pats, opts) limit = cmdutil.loglimit(opts)