merge with stable
authorMatt Mackall <mpm@selenic.com>
Thu, 03 Sep 2015 18:32:17 -0500
changeset 26167 7187f6e923d5
parent 26166 bb6936bec727 (current diff)
parent 26151 0dda3692ec9b (diff)
child 26168 b907051df5b7
merge with stable
mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py	Wed Sep 02 16:07:35 2015 -0400
+++ b/mercurial/hgweb/hgweb_mod.py	Thu Sep 03 18:32:17 2015 -0500
@@ -201,11 +201,13 @@
 
     def refresh(self):
         repostate = []
+        mtime = 0
         # file of interrests mtime and size
         for meth, fname in foi:
             prefix = getattr(self.repo, meth)
             st = get_stat(prefix, fname)
             repostate.append((st.st_mtime, st.st_size))
+            mtime = max(mtime, st.st_mtime)
         repostate = tuple(repostate)
         # we need to compare file size in addition to mtime to catch
         # changes made less than a second ago
@@ -215,7 +217,7 @@
             # update these last to avoid threads seeing empty settings
             self.repostate = repostate
             # mtime is needed for ETag
-            self.mtime = st.st_mtime
+            self.mtime = mtime
 
     def run(self):
         """Start a server from CGI environment.
--- a/mercurial/templates/monoblue/help.tmpl	Wed Sep 02 16:07:35 2015 -0400
+++ b/mercurial/templates/monoblue/help.tmpl	Thu Sep 03 18:32:17 2015 -0500
@@ -30,7 +30,7 @@
         </ul>
     </div>
 
-    <h2 class="no-link no-border">branches</h2>
+    <h2 class="no-link no-border">help</h2>
     <div id="doc">
     {rstdoc(doc, "html")}
     </div>
--- a/mercurial/templates/monoblue/helptopics.tmpl	Wed Sep 02 16:07:35 2015 -0400
+++ b/mercurial/templates/monoblue/helptopics.tmpl	Thu Sep 03 18:32:17 2015 -0500
@@ -30,7 +30,7 @@
         </ul>
     </div>
 
-    <h2 class="no-link no-border">branches</h2>
+    <h2 class="no-link no-border">help</h2>
     <table cellspacing="0">
     <tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr>
     {topics % helpentry}