D2001: httppeer: remove support for connecting to <0.9.1 servers (BC)

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Fri Feb 2 15:52:47 EST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb9e9f1280617: httppeer: remove support for connecting to <0.9.1 servers (BC) (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2001?vs=5143&id=5164

REVISION DETAIL
  https://phab.mercurial-scm.org/D2001

AFFECTED FILES
  mercurial/httppeer.py

CHANGE DETAILS

diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py
--- a/mercurial/httppeer.py
+++ b/mercurial/httppeer.py
@@ -491,13 +491,9 @@
             inst = httpspeer(ui, path)
         else:
             inst = httppeer(ui, path)
-        try:
-            # Try to do useful work when checking compatibility.
-            # Usually saves a roundtrip since we want the caps anyway.
-            inst._fetchcaps()
-        except error.RepoError:
-            # No luck, try older compatibility check.
-            inst.between([(nullid, nullid)])
+
+        inst._fetchcaps()
+
         return inst
     except error.RepoError as httpexception:
         try:



To: indygreg, #hg-reviewers, martinvonz
Cc: mercurial-devel


More information about the Mercurial-devel mailing list