diff hgext/narrow/narrowcommands.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 693dda764efe
line wrap: on
line diff
--- a/hgext/narrow/narrowcommands.py	Sun Sep 30 03:42:35 2018 +0530
+++ b/hgext/narrow/narrowcommands.py	Sun Sep 30 03:45:51 2018 +0530
@@ -32,10 +32,6 @@
     wireprotoserver,
 )
 
-from . import (
-    narrowwirepeer,
-)
-
 table = {}
 command = registrar.command(table)
 
@@ -148,7 +144,7 @@
     kwargs['excludepats'] = exclude
     # calculate known nodes only in ellipses cases because in non-ellipses cases
     # we have all the nodes
-    if narrowwirepeer.ELLIPSESCAP in pullop.remote.capabilities():
+    if wireprotoserver.ELLIPSESCAP in pullop.remote.capabilities():
         kwargs['known'] = [node.hex(ctx.node()) for ctx in
                            repo.set('::%ln', pullop.common)
                            if ctx.node() != node.nullid]