Show More
@@ -193,25 +193,26 b' class basectx(object):' | |||||
193 | return self.rev() in obsmod.getrevs(self._repo, 'extinct') |
|
193 | return self.rev() in obsmod.getrevs(self._repo, 'extinct') | |
194 |
|
194 | |||
195 | def orphan(self): |
|
195 | def orphan(self): | |
196 |
"""True if the changeset is not obsolete but it |
|
196 | """True if the changeset is not obsolete, but its ancestor is""" | |
197 | return self.rev() in obsmod.getrevs(self._repo, 'orphan') |
|
197 | return self.rev() in obsmod.getrevs(self._repo, 'orphan') | |
198 |
|
198 | |||
199 | def phasedivergent(self): |
|
199 | def phasedivergent(self): | |
200 |
"""True if the changeset tr |
|
200 | """True if the changeset tries to be a successor of a public changeset | |
201 |
|
201 | |||
202 |
Only non-public and non-obsolete changesets may be |
|
202 | Only non-public and non-obsolete changesets may be phase-divergent. | |
203 | """ |
|
203 | """ | |
204 | return self.rev() in obsmod.getrevs(self._repo, 'phasedivergent') |
|
204 | return self.rev() in obsmod.getrevs(self._repo, 'phasedivergent') | |
205 |
|
205 | |||
206 | def contentdivergent(self): |
|
206 | def contentdivergent(self): | |
207 |
"""Is a successor |
|
207 | """Is a successor of a changeset with multiple possible successor sets | |
208 |
|
208 | |||
209 | Only non-public and non-obsolete changesets may be divergent. |
|
209 | Only non-public and non-obsolete changesets may be content-divergent. | |
210 | """ |
|
210 | """ | |
211 | return self.rev() in obsmod.getrevs(self._repo, 'contentdivergent') |
|
211 | return self.rev() in obsmod.getrevs(self._repo, 'contentdivergent') | |
212 |
|
212 | |||
213 | def isunstable(self): |
|
213 | def isunstable(self): | |
214 |
"""True if the changeset is either |
|
214 | """True if the changeset is either orphan, phase-divergent or | |
|
215 | content-divergent""" | |||
215 | return self.orphan() or self.phasedivergent() or self.contentdivergent() |
|
216 | return self.orphan() or self.phasedivergent() or self.contentdivergent() | |
216 |
|
217 | |||
217 | def instabilities(self): |
|
218 | def instabilities(self): |
General Comments 0
You need to be logged in to leave comments.
Login now