mercurial/match.py
branchstable
changeset 38750 a8bfaf592033
parent 38612 760cc5dc01e8
child 38954 5a7df82de142
--- a/mercurial/match.py	Mon Jul 30 21:26:55 2018 +0900
+++ b/mercurial/match.py	Sat Jul 28 16:36:35 2018 +0900
@@ -692,7 +692,7 @@
     The prefix path should usually be the relative path from the root of
     this matcher to the root of the wrapped matcher.
 
-    >>> m1 = match(b'root/d/e', b'f', [b'../a.txt', b'b.txt'])
+    >>> m1 = match(util.localpath(b'root/d/e'), b'f', [b'../a.txt', b'b.txt'])
     >>> m2 = prefixdirmatcher(b'root', b'd/e/f', b'd/e', m1)
     >>> bool(m2(b'a.txt'),)
     False