mercurial/setdiscovery.py
changeset 37630 e1b32dc4646c
parent 36718 59802fa590db
child 37631 2f626233859b
--- a/mercurial/setdiscovery.py	Fri Apr 13 10:23:05 2018 -0700
+++ b/mercurial/setdiscovery.py	Fri Apr 13 10:51:23 2018 -0700
@@ -228,7 +228,12 @@
                  % (roundtrips, len(undecided), len(sample)))
         # indices between sample and externalized version must match
         sample = list(sample)
-        yesno = remote.known(dag.externalizeall(sample))
+
+        with remote.commandexecutor() as e:
+            yesno = e.callcommand('known', {
+                'nodes': dag.externalizeall(sample),
+            }).result()
+
         full = True
 
         if sample: