comparison mercurial/context.py @ 39292:f6f52841e1ff

context: use new names for unstable changesets in docstrings Plus slight corrections.
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 28 Aug 2018 00:32:10 +0800
parents d859b48730b8
children fa4d16daf1be
comparison
equal deleted inserted replaced
39291:9f097214fbf3 39292:f6f52841e1ff
191 def extinct(self): 191 def extinct(self):
192 """True if the changeset is extinct""" 192 """True if the changeset is extinct"""
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's ancestor are""" 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 try to be a successor of a public changeset 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 bumped. 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 successors of a changeset with multiple possible successors set 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 unstable, bumped or divergent""" 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):
218 """return the list of instabilities affecting this changeset. 219 """return the list of instabilities affecting this changeset.
219 220