Show More
@@ -32,7 +32,7 b' from vcsserver.base import RepoFactory, ' | |||
|
32 | 32 | from vcsserver.hgcompat import ( |
|
33 | 33 | archival, bin, clone, config as hgconfig, diffopts, hex, |
|
34 | 34 | hg_url as url_parser, httpbasicauthhandler, httpdigestauthhandler, |
|
35 |
|
|
|
35 | makepeer, localrepository, match, memctx, exchange, memfilectx, nullrev, | |
|
36 | 36 | patch, peer, revrange, ui, hg_tag, Abort, LookupError, RepoError, |
|
37 | 37 | RepoLookupError, InterventionRequired, RequirementError) |
|
38 | 38 | |
@@ -383,7 +383,9 b' class HgRemote(object):' | |||
|
383 | 383 | log.debug( |
|
384 | 384 | "Verifying if URL is a Mercurial repository: %s", |
|
385 | 385 | cleaned_uri) |
|
386 |
|
|
|
386 | ui = make_ui_from_config(config) | |
|
387 | peer_checker = makepeer(ui, url) | |
|
388 | peer_checker.lookup('tip') | |
|
387 | 389 | except Exception as e: |
|
388 | 390 | log.warning("URL is not a valid Mercurial repository: %s", |
|
389 | 391 | cleaned_uri) |
@@ -51,7 +51,7 b' from mercurial.node import bin, hex' | |||
|
51 | 51 | from mercurial.encoding import tolocal |
|
52 | 52 | from mercurial.discovery import findcommonoutgoing |
|
53 | 53 | from mercurial.hg import peer |
|
54 |
from mercurial.httppeer import |
|
|
54 | from mercurial.httppeer import makepeer | |
|
55 | 55 | from mercurial.util import url as hg_url |
|
56 | 56 | from mercurial.scmutil import revrange |
|
57 | 57 | from mercurial.node import nullrev |
General Comments 0
You need to be logged in to leave comments.
Login now