[phases] watch phase files for update (closes #86349)

authorPierre-Yves David <pierre-yves.david@logilab.fr>
changeset8bea07afcf24
branchdefault
phasepublic
hiddenno
parent revision#6f0ca886050d [phases] basic support (closes #86349)
child revision#9246f0e56241 prepare version 1.5.0
files modified by this revision
hgviewlib/qt4/hgrepoviewer.py
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@logilab.fr>
# Date 1324293261 -3600
# Mon Dec 19 12:14:21 2011 +0100
# Node ID 8bea07afcf2496fbf932eaefe7b1c1d2e3f971c2
# Parent 6f0ca886050df49fdf586a53fe360267e80e68cf
[phases] watch phase files for update (closes #86349)

diff --git a/hgviewlib/qt4/hgrepoviewer.py b/hgviewlib/qt4/hgrepoviewer.py
@@ -470,11 +470,12 @@
1 
2      def _getrepomtime(self):
3          """Return the last modification time for the repo"""
4          watchedfiles = [(self.repo.root, ".hg", "store"),
5                          (self.repo.root, ".hg", "store", "00changelog.i"),
6 -                        (self.repo.root, ".hg", "dirstate")]
7 +                        (self.repo.root, ".hg", "dirstate"),
8 +                        (self.repo.root, ".hg", "store", "phasesroots"),]
9          watchedfiles = [os.path.join(*wf) for wf in watchedfiles]
10          mtime = [os.path.getmtime(wf) for wf in watchedfiles \
11                   if os.path.exists(wf)]
12          if mtime:
13              return max(mtime)