##// END OF EJS Templates
mercurial: fix problems with latest httppeer changes in mercurial 4.6 series.
marcink -
r457:62954e5c default
parent child Browse files
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 httppeer, localrepository, match, memctx, exchange, memfilectx, nullrev,
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 httppeer(make_ui_from_config(config), url).lookup('tip')
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 httppeer
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