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