hgext/evolve.py
changeset 1580 b915e0d54db0
parent 1576 526253198860
child 1589 d6630a6bff86
equal deleted inserted replaced
1579:4f83b2d2d20d 1580:b915e0d54db0
   763         if count:
   763         if count:
   764             ui.write(s)
   764             ui.write(s)
   765         else:
   765         else:
   766             ui.note(s)
   766             ui.note(s)
   767 
   767 
   768     nbunstable = len(getrevs(repo, 'unstable'))
   768     # util.versiontuple was introduced in 3.6.2
   769     nbbumped = len(getrevs(repo, 'bumped'))
   769     if not util.safehasattr(util, 'versiontuple'):
   770     nbdivergent = len(getrevs(repo, 'divergent'))
   770         nbunstable = len(getrevs(repo, 'unstable'))
   771     write('unstable: %i changesets\n', nbunstable)
   771         nbbumped = len(getrevs(repo, 'bumped'))
   772     write('bumped: %i changesets\n', nbbumped)
   772         nbdivergent = len(getrevs(repo, 'divergent'))
   773     write('divergent: %i changesets\n', nbdivergent)
   773         write('unstable: %i changesets\n', nbunstable)
       
   774         write('bumped: %i changesets\n', nbbumped)
       
   775         write('divergent: %i changesets\n', nbdivergent)
       
   776     else:
       
   777         # In 3.6.2, summary in core gained this feature, no need to display it
       
   778         pass
   774 
   779 
   775 @eh.extsetup
   780 @eh.extsetup
   776 def obssummarysetup(ui):
   781 def obssummarysetup(ui):
   777     cmdutil.summaryhooks.add('evolve', summaryhook)
   782     cmdutil.summaryhooks.add('evolve', summaryhook)
   778 
   783