mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
merge with crew-stable
This commit is contained in:
commit
128a411ed1
@ -65,7 +65,8 @@ def revnavgen(pos, pagelen, limit, nodefunc):
|
||||
class hgweb(object):
|
||||
def __init__(self, repo, name=None):
|
||||
if isinstance(repo, str):
|
||||
self.repo = hg.repository(ui.ui(report_untrusted=False), repo)
|
||||
parentui = ui.ui(report_untrusted=False, interactive=False)
|
||||
self.repo = hg.repository(parentui, repo)
|
||||
else:
|
||||
self.repo = repo
|
||||
|
||||
|
@ -82,7 +82,8 @@ class hgwebdir(object):
|
||||
else:
|
||||
yield config('web', 'motd', '')
|
||||
|
||||
parentui = self.parentui or ui.ui(report_untrusted=False)
|
||||
parentui = self.parentui or ui.ui(report_untrusted=False,
|
||||
interactive=False)
|
||||
|
||||
def config(section, name, default=None, untrusted=True):
|
||||
return parentui.config(section, name, default, untrusted)
|
||||
|
Loading…
Reference in New Issue
Block a user