Mercurial > hg-stable
changeset 26207:13d664127ee9
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.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 22 Aug 2015 16:41:02 -0700 |
parents | ab1c6e4efda4 |
children | c87566ac3c49 |
files | mercurial/hgweb/hgweb_mod.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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.