Patchwork [3,of,4,V2] hgweb: also refresh the repo on changes to the obsstore

login
register
mail settings
Submitter Pierre-Yves David
Date July 3, 2015, 6:29 p.m.
Message ID <5348203dbc672e64dec0.1435948146@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/9888/
State Accepted
Headers show

Comments

Pierre-Yves David - July 3, 2015, 6:29 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1435737747 25200
#      Wed Jul 01 01:02:27 2015 -0700
# Node ID 5348203dbc672e64dec0ba2e3271ea4a5d90c597
# Parent  bed25733093ce290beb35f5197e84fa2292c2aa4
hgweb: also refresh the repo on changes to the obsstore

Before this changes, hgweb could miss update to the obsolescence markers store
if that was the only change between two commands.

Patch

diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py
+++ b/mercurial/hgweb/hgweb_mod.py
@@ -29,10 +29,11 @@  perms = {
 ## files of interrest
 # used to check if the repository has changed looking at mtime and size of
 # theses files.  This should probably be relocated a bit higher in core
 foi = [('spath', '00changelog.i'),
        ('spath', 'phaseroots'), # ! phase can change content at the same size
+       ('spath', 'obsstore'),
       ]
 
 def makebreadcrumb(url, prefix=''):
     '''Return a 'URL breadcrumb' list