Mercurial > hg
changeset 33316:310f7bcab50b
sparse: remove custom hash matcher
With the recent change to always use repr(), this function was
functionally identical to the version in fsmonitor it was
replacing. So remove it.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 06 Jul 2017 17:31:33 -0700 |
parents | d2d4b210a040 |
children | df1287268cc0 |
files | hgext/sparse.py |
diffstat | 1 files changed, 0 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/sparse.py Thu Jul 06 16:37:36 2017 -0700 +++ b/hgext/sparse.py Thu Jul 06 17:31:33 2017 -0700 @@ -116,14 +116,6 @@ _setuplog(ui) _setupadd(ui) _setupdirstate(ui) - # if fsmonitor is enabled, tell it to use our hash function - try: - fsmonitor = extensions.find('fsmonitor') - def _hashignore(orig, ignore): - return _hashmatcher(ignore) - extensions.wrapfunction(fsmonitor, '_hashignore', _hashignore) - except KeyError: - pass def reposetup(ui, repo): if not util.safehasattr(repo, 'dirstate'): @@ -982,8 +974,3 @@ def __repr__(self): return ('<negatematcher matcher=%r>' % self._matcher) - -def _hashmatcher(matcher): - sha1 = hashlib.sha1() - sha1.update(repr(matcher)) - return sha1.hexdigest()