comparison mercurial/hgweb/hgweb_mod.py @ 12696:ef969e58a394

hgweb: another fix for the help termwidth bug
author Matt Mackall <mpm@selenic.com>
date Sun, 10 Oct 2010 17:35:28 -0500
parents 1b1a9038a71a
children 8dcd3203a261
comparison
equal deleted inserted replaced
12695:05077896ffe2 12696:ef969e58a394
26 def __init__(self, repo, name=None, baseui=None): 26 def __init__(self, repo, name=None, baseui=None):
27 if isinstance(repo, str): 27 if isinstance(repo, str):
28 if baseui: 28 if baseui:
29 u = baseui.copy() 29 u = baseui.copy()
30 else: 30 else:
31 u = webutil.wsgiui() 31 u = ui.ui()
32 self.repo = hg.repository(u, repo) 32 self.repo = hg.repository(u, repo)
33 else: 33 else:
34 self.repo = repo 34 self.repo = repo
35 35
36 self.repo.ui.setconfig('ui', 'report_untrusted', 'off') 36 self.repo.ui.setconfig('ui', 'report_untrusted', 'off')