rebase: warn about troubles created by rebase stable
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 19 Sep 2012 17:30:07 +0200
branchstable
changeset 571 31efc36f3aac
parent 570 1c45a07dda51
child 572 dc107acd0bd2
rebase: warn about troubles created by rebase The previous order created obsolete marker after checking for new troubles
README
hgext/evolve.py
tests/test-obsolete.t
--- a/README	Wed Sep 19 14:53:24 2012 +0200
+++ b/README	Wed Sep 19 17:30:07 2012 +0200
@@ -46,6 +46,10 @@
 Changelog
 ==================
 
+ --
+
+- fix troubles creation reporting from rebase
+
 1.0.2 --
 
 - fix hg fold bug
--- a/hgext/evolve.py	Wed Sep 19 14:53:24 2012 +0200
+++ b/hgext/evolve.py	Wed Sep 19 17:30:07 2012 +0200
@@ -1115,11 +1115,11 @@
     try:
         rebase = extensions.find('rebase')
         if rebase:
+            extensions.wrapcommand(rebase.cmdtable, "rebase", cmdrebase)
             entry = extensions.wrapcommand(rebase.cmdtable, 'rebase', warnobserrors)
             extensions.wrapfunction(rebase, 'buildstate', buildstate)
             extensions.wrapfunction(rebase, 'defineparents', defineparents)
             extensions.wrapfunction(rebase, 'concludenode', concludenode)
-            extensions.wrapcommand(rebase.cmdtable, "rebase", cmdrebase)
     except KeyError:
         pass  # rebase not found
 
--- a/tests/test-obsolete.t	Wed Sep 19 14:53:24 2012 +0200
+++ b/tests/test-obsolete.t	Wed Sep 19 17:30:07 2012 +0200
@@ -498,6 +498,7 @@
   nothing to rebase
   [1]
   $ hg rebase -b 3 -d 4 --traceback
+  2 new conflicting changesets
   $ hg log -G -r 'not extinct()'  --template='{rev} - {node|short}\n'
   @  11 - 9468a5f5d8b2
   |