mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
context: add a bumped
method to changectx
Same as `unstable()`, returns true if the changeset is bumped.
This commit is contained in:
parent
14f39efa9f
commit
b3f5aa66c1
@ -243,6 +243,13 @@ class changectx(object):
|
||||
"""True if the changeset is not obsolete but it's ancestor are"""
|
||||
return self.rev() in obsmod.getrevs(self._repo, 'unstable')
|
||||
|
||||
def bumped(self):
|
||||
"""True if the changeset try to be a successor of a public changeset
|
||||
|
||||
Only non-public and non-obsolete changesets may be bumped.
|
||||
"""
|
||||
return self.rev() in obsmod.getrevs(self._repo, 'bumped')
|
||||
|
||||
def _fileinfo(self, path):
|
||||
if '_manifest' in self.__dict__:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user