mercurial/logcmdutil.py
changeset 41619 035cae1d197f
parent 41610 d683aca738cd
child 41620 74f53d3bd685
--- 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