evolve: warn on conflicting changeset too stable
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 11 Jul 2012 13:38:48 +0200
branchstable
changeset 355 72642a6970e0
parent 354 bd26eb9714fb
child 356 56d4c6207ef9
evolve: warn on conflicting changeset too
hgext/evolve.py
--- a/hgext/evolve.py	Wed Jul 11 12:38:05 2012 +0200
+++ b/hgext/evolve.py	Wed Jul 11 13:38:48 2012 +0200
@@ -37,6 +37,7 @@
     """display warning is the command resulted in more instable changeset"""
     priorunstables = len(repo.revs('unstable()'))
     priorlatecomers = len(repo.revs('latecomer()'))
+    priorconflictings = len(repo.revs('conflicting()'))
     #print orig, priorunstables
     #print len(repo.revs('secret() - obsolete()'))
     try:
@@ -44,12 +45,15 @@
     finally:
         newunstables = len(repo.revs('unstable()')) - priorunstables
         newlatecomers = len(repo.revs('latecomer()')) - priorlatecomers
+        newconflictings = len(repo.revs('conflicting()')) - priorconflictings
         #print orig, newunstables
         #print len(repo.revs('secret() - obsolete()'))
         if newunstables > 0:
             ui.warn(_('%i new unstables changesets\n') % newunstables)
         if newlatecomers > 0:
             ui.warn(_('%i new latecomers changesets\n') % newlatecomers)
+        if newconflictings > 0:
+            ui.warn(_('%i new conflictings changesets\n') % newconflictings)
 
 ### changeset rewriting logic
 #############################