Mercurial > public > mercurial-scm > hg
comparison mercurial/context.py @ 18072:03604f46d48a
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.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Wed, 12 Dec 2012 03:20:49 +0100 |
parents | 8b846dbc57b6 |
children | ee3b5fb648c7 |
comparison
equal
deleted
inserted
replaced
18071:bea754715961 | 18072:03604f46d48a |
---|---|
251 | 251 |
252 Only non-public and non-obsolete changesets may be bumped. | 252 Only non-public and non-obsolete changesets may be bumped. |
253 """ | 253 """ |
254 return self.rev() in obsmod.getrevs(self._repo, 'bumped') | 254 return self.rev() in obsmod.getrevs(self._repo, 'bumped') |
255 | 255 |
256 def divergent(self): | |
257 """Is a successors of a changeset with multiple possible successors set | |
258 | |
259 Only non-public and non-obsolete changesets may be divergent. | |
260 """ | |
261 return self.rev() in obsmod.getrevs(self._repo, 'divergent') | |
262 | |
256 def _fileinfo(self, path): | 263 def _fileinfo(self, path): |
257 if '_manifest' in self.__dict__: | 264 if '_manifest' in self.__dict__: |
258 try: | 265 try: |
259 return self._manifest[path], self._manifest.flags(path) | 266 return self._manifest[path], self._manifest.flags(path) |
260 except KeyError: | 267 except KeyError: |