[PATCH 03 of 13 sparse V2] sparse: remove reference to hgwatchman

Gregory Szorc gregory.szorc at gmail.com
Thu Jul 6 15:36:29 EDT 2017


# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1498929871 25200
#      Sat Jul 01 10:24:31 2017 -0700
# Node ID 1f1f1ed45ed8ee15c37080986022d9de1d7fbd05
# Parent  73fb571b44782b7bcb5142606b3ae69ec420341c
sparse: remove reference to hgwatchman

This is a legacy extension. Now that the extension is in core,
we only need to support what's in core, which is fsmonitor.

diff --git a/hgext/sparse.py b/hgext/sparse.py
--- a/hgext/sparse.py
+++ b/hgext/sparse.py
@@ -68,14 +68,6 @@ def extsetup(ui):
         extensions.wrapfunction(fsmonitor, '_hashignore', _hashignore)
     except KeyError:
         pass
-    # do the same for hgwatchman, old name
-    try:
-        hgwatchman = extensions.find('hgwatchman')
-        def _hashignore(orig, ignore):
-            return _hashmatcher(ignore)
-        extensions.wrapfunction(hgwatchman, '_hashignore', _hashignore)
-    except KeyError:
-        pass
 
 def reposetup(ui, repo):
     if not util.safehasattr(repo, 'dirstate'):


More information about the Mercurial-devel mailing list