obsolete: add a divergent method on context
The same we have `unstable` and `bumped`. Convenient method to access troubles
information in general may land later.
This get actual use and testing in the next changesets.
--- a/mercurial/context.py Wed Dec 12 03:12:55 2012 +0100
+++ b/mercurial/context.py Wed Dec 12 03:20:49 2012 +0100
@@ -253,6 +253,13 @@
"""
return self.rev() in obsmod.getrevs(self._repo, 'bumped')
+ def divergent(self):
+ """Is a successors of a changeset with multiple possible successors set
+
+ Only non-public and non-obsolete changesets may be divergent.
+ """
+ return self.rev() in obsmod.getrevs(self._repo, 'divergent')
+
def _fileinfo(self, path):
if '_manifest' in self.__dict__:
try: