comparison 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
comparison
equal deleted inserted replaced
38:9ee7ce0505eb 39:b3c7b844b782
53 print ('Your revmap was made by a newer version of hgsubversion.' 53 print ('Your revmap was made by a newer version of hgsubversion.'
54 ' Please upgrade.') 54 ' Please upgrade.')
55 raise NotImplementedError 55 raise NotImplementedError
56 return revmap 56 return revmap
57 57
58
59 class PrefixMatch(object):
60 def __init__(self, prefix):
61 self.p = prefix
62
63 def files(self):
64 return []
65
66 def __call__(self, fn):
67 return fn.startswith(self.p)