equal
deleted
inserted
replaced
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 |