hgext/rebase.py
branchstable
changeset 11531 59bd20451ab6
parent 11321 40c06bbf58be
child 11537 0a044e5ff489
--- a/hgext/rebase.py	Mon Jul 12 17:55:23 2010 +0900
+++ b/hgext/rebase.py	Tue Jul 13 20:12:32 2010 +0900
@@ -364,6 +364,10 @@
                 repo.mq.qimport(repo, (), patchname=mqrebase[rev][0],
                             git=mqrebase[rev][1],rev=[str(state[rev])])
         repo.mq.save_dirty()
+        qrepo = repo.mq.qrepo()
+        if qrepo:
+            qrepo[None].add(repo.mq.added)
+        repo.mq.added = []
 
 def storestatus(repo, originalwd, target, state, collapse, keep, keepbranches,
                                                                 external):