rebase: warn about troubles created by rebase
The previous order created obsolete marker after checking for new troubles
--- 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
|