diff -r e834f6f6f221 -r 035cae1d197f mercurial/logcmdutil.py --- a/mercurial/logcmdutil.py Wed Feb 06 17:27:43 2019 -0800 +++ b/mercurial/logcmdutil.py Wed Feb 06 17:46:20 2019 -0800 @@ -74,6 +74,9 @@ ui.warn(_('warning: %s not inside relative root %s\n') % ( match.uipath(matchroot), uirelroot)) + relrootmatch = scmutil.match(ctx2, pats=[relroot], default='path') + match = matchmod.intersectmatchers(match, relrootmatch) + if stat: diffopts = diffopts.copy(context=0, noprefix=False) width = 80