mercurial/context.py
changeset 33695 03039ff3082b
parent 33501 7008f6819002
child 33714 2194a8723138
equal deleted inserted replaced
33694:6f4bc9688ca9 33695:03039ff3082b
   227 
   227 
   228     def troubles(self):
   228     def troubles(self):
   229         """return the list of troubles affecting this changesets.
   229         """return the list of troubles affecting this changesets.
   230 
   230 
   231         Troubles are returned as strings. possible values are:
   231         Troubles are returned as strings. possible values are:
   232         - unstable,
   232         - orphan,
   233         - bumped,
   233         - bumped,
   234         - divergent.
   234         - divergent.
   235         """
   235         """
   236         troubles = []
   236         troubles = []
   237         if self.unstable():
   237         if self.unstable():
   238             troubles.append('unstable')
   238             troubles.append('orphan')
   239         if self.bumped():
   239         if self.bumped():
   240             troubles.append('bumped')
   240             troubles.append('bumped')
   241         if self.divergent():
   241         if self.divergent():
   242             troubles.append('divergent')
   242             troubles.append('divergent')
   243         return troubles
   243         return troubles