rebase: add a test for committed MQ patches (59bd20451ab6) stable
authorGiorgos Keramidas <keramida@ceid.upatras.gr>
Mon, 12 Jul 2010 09:19:28 +0300
branchstable
changeset 11536 92342fa9fbd8
parent 11531 59bd20451ab6
child 11537 0a044e5ff489
rebase: add a test for committed MQ patches (59bd20451ab6)
tests/test-rebase-mq
tests/test-rebase-mq.out
--- a/tests/test-rebase-mq	Tue Jul 13 20:12:32 2010 +0900
+++ b/tests/test-rebase-mq	Mon Jul 12 09:19:28 2010 +0300
@@ -101,6 +101,11 @@
 hg qnew f.patch
 echo 'mq2' > p
 hg qref -m 'P1'
+hg qcommit -m 'save patch state'
+echo '% patch series step 1/2'
+hg qseries -s
+echo '% patch queue manifest step 1/2'
+hg -R .hg/patches manifest
 
 echo '% Git patch'
 cat .hg/patches/f_git.patch  | filterpatch
@@ -112,6 +117,11 @@
 echo
 echo '% Rebase the applied mq patches'
 hg rebase -s 2 -d 1 --quiet
+hg qcommit -m 'save patch state'
+echo '% patch series step 2/2'
+hg qseries -s
+echo '% patch queue manifest step 2/2'
+hg -R .hg/patches manifest
 
 echo '% And the patches are correct'
 echo '% Git patch'
--- a/tests/test-rebase-mq.out	Tue Jul 13 20:12:32 2010 +0900
+++ b/tests/test-rebase-mq.out	Mon Jul 12 09:19:28 2010 +0300
@@ -80,6 +80,14 @@
 popping f.patch
 patch queue now empty
 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+% patch series step 1/2
+f_git.patch: P0 (git)
+f.patch: P1
+% patch queue manifest step 1/2
+.hgignore
+f.patch
+f_git.patch
+series
 % Git patch
 P0 (git)
 
@@ -101,6 +109,14 @@
 +mq2
 
 % Rebase the applied mq patches
+% patch series step 2/2
+f_git.patch: P0 (git)
+f.patch: P1
+% patch queue manifest step 2/2
+.hgignore
+f.patch
+f_git.patch
+series
 % And the patches are correct
 % Git patch
 # HG changeset patch