diff --git a/hgext/fbsparse.py b/hgext/fbsparse.py index 95d95ce669..56ef30ebd8 100644 --- a/hgext/fbsparse.py +++ b/hgext/fbsparse.py @@ -1902,6 +1902,10 @@ class forceincludematcher(matchmod.basematcher): def __call__(self, value): return value in self._includes or self._matcher(value) + def __repr__(self): + return '' % ( + self._matcher, self._includes) + def visitdir(self, dir): if any(True for path in self._includes if path.startswith(dir)): return True @@ -1929,6 +1933,9 @@ class negatematcher(matchmod.basematcher): def __call__(self, value): return not self._matcher(value) + def __repr__(self): + return '' % self._matcher + def hash(self): sha1 = hashlib.sha1() sha1.update('negate')