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

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Jul 1 14:26:08 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 0be9c27464989b11d1b6540e4bbadfb0c936925e
# Parent  7e3ad479d9bda6560885f08a1df63d386639b2e1
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', None),
        ('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