Show More
@@ -16,7 +16,6 b' import struct' | |||
|
16 | 16 | import tempfile |
|
17 | 17 | |
|
18 | 18 | from .i18n import _ |
|
19 | from .node import nullid | |
|
20 | 19 | from . import ( |
|
21 | 20 | bundle2, |
|
22 | 21 | error, |
@@ -491,13 +490,9 b' def instance(ui, path, create):' | |||
|
491 | 490 | inst = httpspeer(ui, path) |
|
492 | 491 | else: |
|
493 | 492 | inst = httppeer(ui, path) |
|
494 | try: | |
|
495 | # Try to do useful work when checking compatibility. | |
|
496 | # Usually saves a roundtrip since we want the caps anyway. | |
|
497 | inst._fetchcaps() | |
|
498 | except error.RepoError: | |
|
499 | # No luck, try older compatibility check. | |
|
500 | inst.between([(nullid, nullid)]) | |
|
493 | ||
|
494 | inst._fetchcaps() | |
|
495 | ||
|
501 | 496 | return inst |
|
502 | 497 | except error.RepoError as httpexception: |
|
503 | 498 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now