# HG changeset patch # User Thomas Arendsen Hein # Date 1158074780 -7200 # Node ID 760414dc7ac63324b2ba475e07dfe419b5c45d24 # Parent e270cbd4aa207d020ab6d4585085e1a55d784cf8 Added tests for qpush/qpop with index. diff -r e270cbd4aa20 -r 760414dc7ac6 tests/test-mq --- a/tests/test-mq Mon Sep 11 10:23:23 2006 +0200 +++ b/tests/test-mq Tue Sep 12 17:26:20 2006 +0200 @@ -115,6 +115,19 @@ echo % qunapplied hg qunapplied +echo % qpush/qpop with index +hg qnew test1b.patch +echo 1b > 1b +hg add 1b +hg qrefresh +hg qpush 2 +hg qpop 0 +hg qpush test.patch+1 +hg qpush test.patch+2 +hg qpop test2.patch-1 +hg qpop test2.patch-2 +hg qpush test1b.patch+1 + echo % push should succeed hg qpop -a hg push ../../k diff -r e270cbd4aa20 -r 760414dc7ac6 tests/test-mq.out --- a/tests/test-mq.out Mon Sep 11 10:23:23 2006 +0200 +++ b/tests/test-mq.out Tue Sep 12 17:26:20 2006 +0200 @@ -110,6 +110,19 @@ abort: source has mq patches applied % qunapplied test2.patch +% qpush/qpop with index +applying test2.patch +Now at: test2.patch +Now at: test.patch +applying test1b.patch +Now at: test1b.patch +applying test2.patch +Now at: test2.patch +Now at: test1b.patch +Now at: test.patch +applying test1b.patch +applying test2.patch +Now at: test2.patch % push should succeed Patch queue now empty pushing to ../../k