hgext/evolve.py
branchstable
changeset 552 f7e54d4a3b90
parent 551 38fbcc760ec6
child 553 e29561d918a6
equal deleted inserted replaced
551:38fbcc760ec6 552:f7e54d4a3b90
   914     """display warning is the command resulted in more instable changeset"""
   914     """display warning is the command resulted in more instable changeset"""
   915     priorunstables = len(repo.revs('unstable()'))
   915     priorunstables = len(repo.revs('unstable()'))
   916     priorlatecomers = len(repo.revs('latecomer()'))
   916     priorlatecomers = len(repo.revs('latecomer()'))
   917     priorconflictings = len(repo.revs('conflicting()'))
   917     priorconflictings = len(repo.revs('conflicting()'))
   918     ret = orig(ui, repo, *args, **kwargs)
   918     ret = orig(ui, repo, *args, **kwargs)
       
   919     # workaround phase stupidity
       
   920     phases._filterunknown(ui, repo.changelog, repo._phasecache.phaseroots)
   919     newunstables = len(repo.revs('unstable()')) - priorunstables
   921     newunstables = len(repo.revs('unstable()')) - priorunstables
   920     newlatecomers = len(repo.revs('latecomer()')) - priorlatecomers
   922     newlatecomers = len(repo.revs('latecomer()')) - priorlatecomers
   921     newconflictings = len(repo.revs('conflicting()')) - priorconflictings
   923     newconflictings = len(repo.revs('conflicting()')) - priorconflictings
   922     if newunstables > 0:
   924     if newunstables > 0:
   923         ui.warn(_('%i new unstable changesets\n') % newunstables)
   925         ui.warn(_('%i new unstable changesets\n') % newunstables)