# HG changeset patch # User Shun-ichi GOTO # Date 1428931481 -32400 # Node ID fd3461f865826f682202fe199715bd343266630a # Parent a36e87ae23805ad4f636f6b0cdb5b735603bd98a add minimum methods for matcher By changeset 24820:5693c834bcb4 in mercurial crew, it become that matcher object need to implement some common methods, bad(), always(), iseact() and anypats(). So the PrefixMatch class should be implement them. diff --git a/hgsubversion/util.py b/hgsubversion/util.py --- a/hgsubversion/util.py +++ b/hgsubversion/util.py @@ -215,6 +215,18 @@ class PrefixMatch(object): def __call__(self, fn): return fn.startswith(self.p) + def bad(self, f, msg): + pass + + def always(self): + return False + + def isexact(self): + return False + + def anypats(self): + return True + def outgoing_revisions(repo, reverse_map, sourcerev): """Given a repo and an hg_editor, determines outgoing revisions for the current working copy state.