# HG changeset patch # User Durham Goode # Date 1432869530 25200 # Node ID 7475c42671b10f8f6437370c400a6c84abe6fe26 # Parent 82803ec84c826c0ab155ec7f3283e37fd5e2551b util: add prefix to PrefixMatch The upstream match object now has a prefix function. Let's add it to our PrefixMatcher. The upstream implementation will return False if anypats() is true, which it is for our PrefixMatcher, so we go ahead and return False. This was caught by the tests failing. diff --git a/hgsubversion/util.py b/hgsubversion/util.py --- a/hgsubversion/util.py +++ b/hgsubversion/util.py @@ -227,6 +227,9 @@ class PrefixMatch(object): def anypats(self): return True + def prefix(self): + return False + def outgoing_revisions(repo, reverse_map, sourcerev): """Given a repo and an hg_editor, determines outgoing revisions for the current working copy state.