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

login
register
mail settings
Submitter Pierre-Yves David
Date July 1, 2015, 7:26 p.m.
Message ID <0be9c27464989b11d1b6.1435778768@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/9849/
State Superseded
Commit c51a18609a7f56c0fe2fc60844a02b77f7540eae
Headers show

Comments

Pierre-Yves David - July 1, 2015, 7:26 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 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.

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', None),
        ('spath', 'phaseroots'), # ! phase can change content at the same size
+       ('spath', 'obsstore'),
       ]
 
 def makebreadcrumb(url, prefix=''):
     '''Return a 'URL breadcrumb' list