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

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri Jul 3 13:29:06 CDT 2015


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at 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.

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
 


More information about the Mercurial-devel mailing list