# HG changeset patch # User Gregory Szorc # Date 1440286862 25200 # Node ID 13d664127ee9ea65b8d8f0c47a16fe1d06a554e1 # Parent ab1c6e4efda47281b14a4f5a46cc0d4a114fff7d hgweb: regenerate web substitutions when repo is refreshed Previously, changes to the configuration would not be picked up by a running server. That feels like a bug. Regenerate the web substitutions table when the repository changes. diff -r ab1c6e4efda4 -r 13d664127ee9 mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Wed Sep 09 09:07:27 2015 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Sat Aug 22 16:41:02 2015 -0700 @@ -238,7 +238,6 @@ self.repostate = None self.mtime = -1 self.reponame = name - self.websubtable = webutil.getwebsubs(r) def _getview(self, repo): """The 'web.view' config controls changeset filter to hgweb. Possible @@ -280,6 +279,8 @@ # mtime is needed for ETag self.mtime = mtime + self.websubtable = webutil.getwebsubs(r) + def run(self): """Start a server from CGI environment.