mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
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:
parent
108b8f9d41
commit
4fcf7c436c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user