changeset 15703:2a48422e27f6

phases: add a mutable boolean property on context
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 19 Dec 2011 23:31:38 +0100
parents 64a80204433f
children 8857e150bec0
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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