3926 ('b', 'branch', [], |
3926 ('b', 'branch', [], |
3927 _('show changesets within the given named branch'), _('BRANCH')), |
3927 _('show changesets within the given named branch'), _('BRANCH')), |
3928 ('P', 'prune', [], |
3928 ('P', 'prune', [], |
3929 _('do not display revision or any of its ancestors'), _('REV')), |
3929 _('do not display revision or any of its ancestors'), _('REV')), |
3930 ('', 'hidden', False, _('show hidden changesets (DEPRECATED)')), |
3930 ('', 'hidden', False, _('show hidden changesets (DEPRECATED)')), |
|
3931 ('G', 'graph', None, _("show the revision DAG")), |
3931 ] + logopts + walkopts, |
3932 ] + logopts + walkopts, |
3932 _('[OPTION]... [FILE]')) |
3933 _('[OPTION]... [FILE]')) |
3933 def log(ui, repo, *pats, **opts): |
3934 def log(ui, repo, *pats, **opts): |
3934 """show revision history of entire repository or files |
3935 """show revision history of entire repository or files |
3935 |
3936 |
4010 See :hg:`help templates` for more about pre-packaged styles and |
4011 See :hg:`help templates` for more about pre-packaged styles and |
4011 specifying custom templates. |
4012 specifying custom templates. |
4012 |
4013 |
4013 Returns 0 on success. |
4014 Returns 0 on success. |
4014 """ |
4015 """ |
|
4016 if opts.get('graph'): |
|
4017 return cmdutil.graphlog(ui, repo, *pats, **opts) |
4015 |
4018 |
4016 matchfn = scmutil.match(repo[None], pats, opts) |
4019 matchfn = scmutil.match(repo[None], pats, opts) |
4017 limit = cmdutil.loglimit(opts) |
4020 limit = cmdutil.loglimit(opts) |
4018 count = 0 |
4021 count = 0 |
4019 |
4022 |