doctest: convert matcher root to native path
Otherwise it wouldn't be caught by a fast path of pathutil.canonpath(), and
fall back to file identity checks.
--- 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