diff mercurial/hgweb/hgweb_mod.py @ 22087:af62f0280a76 stable

hgweb: avoid config object race with hgwebdir (issue4326) Turns out hgwebdir passes full repo objects to each hgweb request instance, but with a shared baseui. We explicitly break the sharing.
author Matt Mackall <mpm@selenic.com>
date Sun, 10 Aug 2014 13:53:36 -0500
parents bd3360c63bb3
children b27c3beaaf30 6e1fbcb18a75
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Sat Aug 09 16:15:52 2014 -0500
+++ b/mercurial/hgweb/hgweb_mod.py	Sun Aug 10 13:53:36 2014 -0500
@@ -61,6 +61,7 @@
                 u = ui.ui()
             r = hg.repository(u, repo)
         else:
+            # we trust caller to give us a private copy
             r = repo
 
         r = self._getview(r)