diff util.py @ 39:b3c7b844b782

Some more fixes of cases discovered in the melange repo. If anyone knows how I can reproduce a "replaced" state in Subversion, I'd love to be able to make a real test case for this code.
author Augie Fackler <durin42@gmail.com>
date Sun, 26 Oct 2008 22:06:13 -0500
parents 50d55c3e0d85
children 1da7aafdd323
line wrap: on
line diff
--- a/util.py
+++ b/util.py
@@ -55,3 +55,13 @@ def parse_revmap(revmap_filename):
             raise NotImplementedError
     return revmap
 
+
+class PrefixMatch(object):
+    def __init__(self, prefix):
+        self.p = prefix
+    
+    def files(self):
+        return []
+    
+    def __call__(self, fn):
+        return fn.startswith(self.p)