# HG changeset patch # User Pierre-Yves David # Date 1355278849 -3600 # Node ID 03604f46d48a8380f63fd803662c8ba13d7ab27d # Parent bea754715961e7e838065646e000f12cb79a3b99 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. diff -r bea754715961 -r 03604f46d48a mercurial/context.py --- 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: