comparison mercurial/commands.py @ 44823:3b7aabd02e11

cleanup: avoid extra node/ctx conversions in logcmdutil.diffordiffstat I'm about to write some code that wants to pass a memctx to diffordiffstat, but this feels like a meritorious cleanup anyway, since the first thing this method does is turn nodes into contexts, and most callers have a context handy. Differential Revision: https://phab.mercurial-scm.org/D8502
author Augie Fackler <augie@google.com>
date Thu, 07 May 2020 16:54:17 -0400
parents 07a6a29d25ea
children 6d3768b11241
comparison
equal deleted inserted replaced
44822:118f067f6bd1 44823:3b7aabd02e11
2500 ui.pager(b'diff') 2500 ui.pager(b'diff')
2501 logcmdutil.diffordiffstat( 2501 logcmdutil.diffordiffstat(
2502 ui, 2502 ui,
2503 repo, 2503 repo,
2504 diffopts, 2504 diffopts,
2505 node1, 2505 repo[node1],
2506 node2, 2506 repo[node2],
2507 m, 2507 m,
2508 stat=stat, 2508 stat=stat,
2509 listsubrepos=opts.get(b'subrepos'), 2509 listsubrepos=opts.get(b'subrepos'),
2510 root=opts.get(b'root'), 2510 root=opts.get(b'root'),
2511 ) 2511 )