##// END OF EJS Templates
sparse: remove custom hash matcher...
Gregory Szorc -
r33316:310f7bca default
parent child Browse files
Show More
@@ -116,14 +116,6 b' def extsetup(ui):'
116 _setuplog(ui)
116 _setuplog(ui)
117 _setupadd(ui)
117 _setupadd(ui)
118 _setupdirstate(ui)
118 _setupdirstate(ui)
119 # if fsmonitor is enabled, tell it to use our hash function
120 try:
121 fsmonitor = extensions.find('fsmonitor')
122 def _hashignore(orig, ignore):
123 return _hashmatcher(ignore)
124 extensions.wrapfunction(fsmonitor, '_hashignore', _hashignore)
125 except KeyError:
126 pass
127
119
128 def reposetup(ui, repo):
120 def reposetup(ui, repo):
129 if not util.safehasattr(repo, 'dirstate'):
121 if not util.safehasattr(repo, 'dirstate'):
@@ -982,8 +974,3 b' class negatematcher(object):'
982
974
983 def __repr__(self):
975 def __repr__(self):
984 return ('<negatematcher matcher=%r>' % self._matcher)
976 return ('<negatematcher matcher=%r>' % self._matcher)
985
986 def _hashmatcher(matcher):
987 sha1 = hashlib.sha1()
988 sha1.update(repr(matcher))
989 return sha1.hexdigest()
General Comments 0
You need to be logged in to leave comments. Login now