##// 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 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 httppeer, localrepository, match, memctx, exchange, memfilectx, nullrev,
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 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 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 httppeer
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