diff hgext/narrow/narrowrepo.py @ 39934:a24f4638d6c1

narrow: move the ellipses server capability to core This will be used in core logic to determining whether a server is ellipses enabled or not. And also this will ease moving narrow related things to core. Differential Revision: https://phab.mercurial-scm.org/D4809
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sun, 30 Sep 2018 03:45:51 +0530
parents d5498db5f86a
children f7011b44d205
line wrap: on
line diff
--- a/hgext/narrow/narrowrepo.py	Sun Sep 30 03:42:35 2018 +0530
+++ b/hgext/narrow/narrowrepo.py	Sun Sep 30 03:45:51 2018 +0530
@@ -13,7 +13,6 @@
 
 from . import (
     narrowdirstate,
-    narrowwirepeer,
 )
 
 def wraprepo(repo):
@@ -28,7 +27,7 @@
         def peer(self):
             peer = super(narrowrepository, self).peer()
             peer._caps.add(wireprotoserver.NARROWCAP)
-            peer._caps.add(narrowwirepeer.ELLIPSESCAP)
+            peer._caps.add(wireprotoserver.ELLIPSESCAP)
             return peer
 
     repo.__class__ = narrowrepository