phases: add a mutable boolean property on context
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Mon, 19 Dec 2011 23:31:38 +0100
changeset 15703 2a48422e27f6
parent 15702 64a80204433f
child 15704 8857e150bec0
phases: add a mutable boolean property on context
mercurial/context.py
--- a/mercurial/context.py	Tue Dec 20 20:36:40 2011 +0100
+++ b/mercurial/context.py	Mon Dec 19 23:31:38 2011 +0100
@@ -124,6 +124,8 @@
             # outdated cache
             del self._repo._phaserev
         return self._repo._phaserev[self._rev]
+    def mutable(self):
+        return self._repo._phaserev[self._rev] > 0
     def hidden(self):
         return self._rev in self._repo.changelog.hiddenrevs