[PATCH 6 of 7 V2] context: add a bumped attributes for changectx
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Wed Oct 3 16:21:59 CDT 2012
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1349297849 -7200
# Node ID d96d66880c8cc9b47e422de4f738bf4960c58932
# Parent 6f36fcc8f5315fa54d6104348c8d175838f15825
context: add a bumped attributes for changectx
Same as unstable(), returns true if the changeset is bumped.
diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -243,6 +243,11 @@
"""True if the changeset is not obsolete but it's ancestor are"""
return self.rev() in obsmod.getobscache(self._repo, 'unstable')
+ def bumped(self):
+ """True if the changeset try to be a successors of a public changeset
+ """
+ return self.rev() in obsmod.getobscache(self._repo, 'bumped')
+
def _fileinfo(self, path):
if '_manifest' in self.__dict__:
try:
More information about the Mercurial-devel
mailing list