Skip to content
Snippets Groups Projects
Commit ccdc95c6 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

hgweb: do not import hgweb_mod.hgweb and .makebreadcrumb as symbol

It will be enforced by the import checker.
parent 30b919bc
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
from mercurial import error, encoding from mercurial import error, encoding
from common import ErrorResponse, get_mtime, staticfile, paritygen, ismember, \ from common import ErrorResponse, get_mtime, staticfile, paritygen, ismember, \
get_contact, HTTP_OK, HTTP_NOT_FOUND, HTTP_SERVER_ERROR get_contact, HTTP_OK, HTTP_NOT_FOUND, HTTP_SERVER_ERROR
from hgweb_mod import hgweb, makebreadcrumb import hgweb_mod
from request import wsgirequest from request import wsgirequest
import webutil import webutil
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
try: try:
# ensure caller gets private copy of ui # ensure caller gets private copy of ui
repo = hg.repository(self.ui.copy(), real) repo = hg.repository(self.ui.copy(), real)
return hgweb(repo).run_wsgi(req) return hgweb_mod.hgweb(repo).run_wsgi(req)
except IOError as inst: except IOError as inst:
msg = inst.strerror msg = inst.strerror
raise ErrorResponse(HTTP_SERVER_ERROR, msg) raise ErrorResponse(HTTP_SERVER_ERROR, msg)
...@@ -427,7 +427,7 @@ ...@@ -427,7 +427,7 @@
self.updatereqenv(req.env) self.updatereqenv(req.env)
return tmpl("index", entries=entries, subdir=subdir, return tmpl("index", entries=entries, subdir=subdir,
pathdef=makebreadcrumb('/' + subdir, self.prefix), pathdef=hgweb_mod.makebreadcrumb('/' + subdir, self.prefix),
sortcolumn=sortcolumn, descending=descending, sortcolumn=sortcolumn, descending=descending,
**dict(sort)) **dict(sort))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment