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

login
register
mail settings
Submitter Gregory Szorc
Date July 6, 2017, 7:36 p.m.
Message ID <1f1f1ed45ed8ee15c370.1499369789@ubuntu-vm-main>
Download mbox | patch
Permalink /patch/22031/
State Accepted
Headers show

Comments

Gregory Szorc - July 6, 2017, 7:36 p.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@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.

Patch

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'):