hgext/obsolete.py
changeset 479 b63da0fb8ee5
parent 473 1f8f8dd75d18
child 480 cd1d5b7308be
equal deleted inserted replaced
478:13ccb68b728d 479:b63da0fb8ee5
   924                     and ex.hint is None):
   924                     and ex.hint is None):
   925                     ex.hint = hint
   925                     ex.hint = hint
   926                 raise
   926                 raise
   927             return result
   927             return result
   928     repo.__class__ = stabilizerrepo
   928     repo.__class__ = stabilizerrepo
       
   929 
       
   930 @eh.wrapcommand("summary")
       
   931 def obssummary(orig, ui, repo, *args, **kwargs):
       
   932     ret = orig(ui, repo, *args, **kwargs)
       
   933     nbunstable = len(getobscache(repo, 'unstable'))
       
   934     nblatecomer = len(getobscache(repo, 'latecomer'))
       
   935     nbconflicting = len(getobscache(repo, 'unstable'))
       
   936     if nbunstable:
       
   937         ui.write('unstable: %i changesets\n' % nbunstable)
       
   938     else:
       
   939         ui.note('unstable: 0 changesets\n')
       
   940     if nblatecomer:
       
   941         ui.write('latecomer: %i changesets\n' % nblatecomer)
       
   942     else:
       
   943         ui.note('latecomer: 0 changesets\n')
       
   944     if nbconflicting:
       
   945         ui.write('conflicting: %i changesets\n' % nbconflicting)
       
   946     else:
       
   947         ui.note('conflicting: 0 changesets\n')
       
   948     return ret
       
   949 
   929 
   950 
   930 #####################################################################
   951 #####################################################################
   931 ### Core Other extension compat                                   ###
   952 ### Core Other extension compat                                   ###
   932 #####################################################################
   953 #####################################################################
   933 
   954