diff -r 572f36e9a780 -r c8e2d6ed1f9e mercurial/subrepo.py --- a/mercurial/subrepo.py Sun Jan 21 12:48:39 2018 +0900 +++ b/mercurial/subrepo.py Sun Jan 21 13:03:03 2018 +0900 @@ -28,6 +28,7 @@ error, exchange, filemerge, + logcmdutil, match as matchmod, node, pathutil, @@ -907,10 +908,10 @@ # in hex format if node2 is not None: node2 = node.bin(node2) - cmdutil.diffordiffstat(ui, self._repo, diffopts, - node1, node2, match, - prefix=posixpath.join(prefix, self._path), - listsubrepos=True, **opts) + logcmdutil.diffordiffstat(ui, self._repo, diffopts, + node1, node2, match, + prefix=posixpath.join(prefix, self._path), + listsubrepos=True, **opts) except error.RepoLookupError as inst: self.ui.warn(_('warning: error "%s" in subrepository "%s"\n') % (inst, subrelpath(self)))