[PATCH 4 of 4 V2] hgweb: also monitor change to bookmarks

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


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1435733722 25200
#      Tue Jun 30 23:55:22 2015 -0700
# Node ID dc6d4bd2372ad6adbd420c01553a6cecb61d544c
# Parent  5348203dbc672e64dec0ba2e3271ea4a5d90c597
hgweb: also monitor change to bookmarks

This make change to bookmark visible to hgweb through the official way. There
is not changes to test because there is currently another hack in place to
ensure the same behavior. See next changeset for details.

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
@@ -30,10 +30,11 @@ perms = {
 # 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'),
+       ('path', 'bookmarks'), # ! bookmark can change content at the same size
       ]
 
 def makebreadcrumb(url, prefix=''):
     '''Return a 'URL breadcrumb' list
 


More information about the Mercurial-devel mailing list