mercurial/context.py
changeset 18072 03604f46d48a
parent 18036 8b846dbc57b6
child 18084 ee3b5fb648c7
--- 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: