Patchwork [03,of,10] serve: pass the prepared baseui to hgweb

login
register
mail settings
Submitter Simon Heimberg
Date March 22, 2013, 1:20 a.m.
Message ID <105291a2228c1e12990b.1363915253@lapsi.heimberg.home>
Download mbox | patch
Permalink /patch/1159/
State Accepted
Commit 6793ae6e36dce55ae26d4ad61bcec06bfb59d2dc
Headers show

Comments

Simon Heimberg - March 22, 2013, 1:20 a.m.
# HG changeset patch
# User Simon Heimberg <simohe@besonet.ch>
# Date 1363886208 -3600
# Node ID 105291a2228c1e12990bb13e25924b07e7e5319a
# Parent  00aa259c196fbb9751c11933a3f6581152a44c57
serve: pass the prepared baseui to hgweb

The baseui was carefully prepared but not used.
ui can contain repo specific settings which can have unwanted effects.

Patch

diff -r 00aa259c196f -r 105291a2228c mercurial/commands.py
--- a/mercurial/commands.py	Don Mär 21 18:16:48 2013 +0100
+++ b/mercurial/commands.py	Don Mär 21 18:16:48 2013 +0100
@@ -5006,7 +5006,7 @@ 
                                     " here (.hg not found)"))
         o = repo.root
 
-    app = hgweb.hgweb(o, baseui=ui)
+    app = hgweb.hgweb(o, baseui=baseui)
 
     class service(object):
         def init(self):