hgsubversion: fix match constructor

Summary: This needs to be patterns not pattern.

Reviewed By: quark-zju

Differential Revision: D13345626

fbshipit-source-id: fd998610d3a6840905f82e4b37fd240e8ac7f8d9
This commit is contained in:
Durham Goode 2018-12-05 12:09:42 -08:00 committed by Facebook Github Bot
parent 108b8f9d41
commit 4fcf7c436c

View File

@ -284,7 +284,7 @@ class HgEditor(svnwrap.Editor):
assert dir == "" or dir.endswith("/")
mf = ctx.manifest()
if isinstance(mf, cstore.treemanifest):
matcher = matchmod.match("", "/", pattern=[dir], default='path')
matcher = matchmod.match("", "/", patterns=[dir], default='path')
for x in mf.walk(matcher):
yield x
else: