# HG changeset patch # User Yuya Nishihara # Date 1532763395 -32400 # Node ID a8bfaf592033a8c10e5c8bf8d5edda90ba45c611 # Parent 0c5d131fa42803da9a3ed4c8f91018bd6c26e24a 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. diff -r 0c5d131fa428 -r a8bfaf592033 mercurial/match.py --- 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