Mercurial > hg-stable
diff mercurial/commands.py @ 17181:6f71167292f2
log: support --graph without graphlog extension
The glog command is preserved in the extension for backward compatibility.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sat, 14 Jul 2012 19:09:22 +0200 |
parents | e058f4eec69c |
children | cdf1532d89c6 |
line wrap: on
line diff
--- 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)