Patchwork [3,of,3] hgweb: also monitor change to bookmarks

login
register
mail settings
Submitter Pierre-Yves David
Date July 1, 2015, 7:26 p.m.
Message ID <124604445dfa9294465b.1435778769@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/9850/
State Superseded
Commit bd2e171d023b2d673c310e6ca902282c49eff15d
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 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.

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
@@ -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