mercurial/commands.py
changeset 36234 1abf089a1d70
parent 36224 c1628a5eac87
child 36235 db26e6a0a677
--- a/mercurial/commands.py	Wed Feb 14 20:32:32 2018 +0800
+++ b/mercurial/commands.py	Sun Jan 21 16:03:14 2018 +0900
@@ -3424,7 +3424,6 @@
     if opts.get('graph'):
         if linerange:
             raise error.Abort(_('graph not supported with line range patterns'))
-        return logcmdutil.graphlog(ui, repo, revs, differ, opts)
 
     if linerange:
         revs, differ = logcmdutil.getlinerangerevs(repo, revs, opts)
@@ -3439,6 +3438,10 @@
     ui.pager('log')
     displayer = logcmdutil.changesetdisplayer(ui, repo, opts, differ,
                                               buffered=True)
+    if opts.get('graph'):
+        logcmdutil.graphlog(ui, repo, revs, displayer, getrenamed)
+        return
+
     for rev in revs:
         ctx = repo[rev]
         copies = None