Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 36196:1abf089a1d70
graphlog: deduplicate preprocessing of log command
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 21 Jan 2018 16:03:14 +0900 |
parents | c1628a5eac87 |
children | db26e6a0a677 |
line wrap: on
line diff
--- 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