traceback from hg serve

Matt Mackall mpm at selenic.com
Thu Apr 24 17:37:51 UTC 2014


On Thu, 2014-04-24 at 16:47 +0100, James Gregory wrote:
> Mercurial: Mercurial Distributed SCM (version 2.9.1)
> OS: Ubuntu 12.04.4 LTS

Try this patch:

diff -r d36440d84328 mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py	Wed Apr 23 23:29:55 2014 +0200
+++ b/mercurial/hgweb/hgweb_mod.py	Thu Apr 24 12:37:07 2014 -0500
@@ -64,6 +64,7 @@
             r = repo
 
         r = self._getview(r)
+        r.baseui = r.baseui.copy()
         r.ui.setconfig('ui', 'report_untrusted', 'off', 'hgweb')
         r.baseui.setconfig('ui', 'report_untrusted', 'off', 'hgweb')
         r.ui.setconfig('ui', 'nontty', 'true', 'hgweb')

-- 
Mathematics is the supreme nostalgia of our time.





More information about the Mercurial mailing list