mercurial/exchange.py
changeset 39630 9c2c77c73f23
parent 39629 a86d21e70b2b
child 39911 d1bc6cf2be69
--- a/mercurial/exchange.py	Wed Sep 12 09:58:23 2018 -0700
+++ b/mercurial/exchange.py	Wed Sep 12 10:01:16 2018 -0700
@@ -1508,7 +1508,7 @@
     pullop.trmanager = transactionmanager(repo, 'pull', remote.url())
     with repo.wlock(), repo.lock(), pullop.trmanager:
         # Use the modern wire protocol, if available.
-        if remote.capable('exchangev2'):
+        if remote.capable('command-changesetdata'):
             exchangev2.pull(pullop)
         else:
             # This should ideally be in _pullbundle2(). However, it needs to run