[PATCH 3 of 3] hgweb: also monitor change to bookmarks

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