hgext/narrow/narrowwirepeer.py
changeset 39933 d5498db5f86a
parent 39544 10a8472f6662
child 39934 a24f4638d6c1
--- a/hgext/narrow/narrowwirepeer.py	Sun Sep 30 16:11:35 2018 +0900
+++ b/hgext/narrow/narrowwirepeer.py	Sun Sep 30 03:42:35 2018 +0530
@@ -10,10 +10,10 @@
 from mercurial import (
     extensions,
     hg,
+    wireprotoserver,
     wireprotov1server,
 )
 
-NARROWCAP = 'exp-narrow-1'
 ELLIPSESCAP = 'exp-ellipses-1'
 
 def uisetup():
@@ -22,7 +22,7 @@
 def addnarrowcap(orig, repo, proto):
     """add the narrow capability to the server"""
     caps = orig(repo, proto)
-    caps.append(NARROWCAP)
+    caps.append(wireprotoserver.NARROWCAP)
     if repo.ui.configbool('experimental', 'narrowservebrokenellipses'):
         caps.append(ELLIPSESCAP)
     return caps