rebase: always store rev in state, also when collapsing
authorMads Kiilerich <madski@unity3d.com>
Tue, 02 Dec 2014 05:12:59 +0100
changeset 23460 8dc45c905989
parent 23459 2e047b1558a5
child 23461 ffef6d503ab2
rebase: always store rev in state, also when collapsing
hgext/rebase.py
--- a/hgext/rebase.py	Tue Dec 02 05:12:53 2014 +0100
+++ b/hgext/rebase.py	Tue Dec 02 05:12:59 2014 +0100
@@ -429,9 +429,13 @@
             editor = cmdutil.getcommiteditor(edit=editopt, editform=editform)
             newnode = concludenode(repo, rev, p1, external, commitmsg=commitmsg,
                                    extrafn=extrafn, editor=editor)
+            if newnode is None:
+                newrev = target
+            else:
+                newrev = repo[newnode].rev()
             for oldrev in state.iterkeys():
                 if state[oldrev] > nullmerge:
-                    state[oldrev] = newnode
+                    state[oldrev] = newrev
 
         if 'qtip' in repo.tags():
             updatemq(repo, state, skipped, **opts)