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