diff tests/test-mq-qrefresh @ 10367:b8801b58bbd8 stable

test-mq-qrefresh: test qrefresh when tip != qtip
author Patrick Mezard <pmezard@gmail.com>
date Sun, 07 Feb 2010 11:38:36 +0100
parents 5f7e3f17aece
children f05e0d54f424
line wrap: on
line diff
--- a/tests/test-mq-qrefresh	Sat Feb 06 18:36:27 2010 +0100
+++ b/tests/test-mq-qrefresh	Sun Feb 07 11:38:36 2010 +0100
@@ -155,6 +155,31 @@
 hg qdiff --nodates
 cd ..
 
+echo '% issue2025: qrefresh does not honor filtering options when tip != qtip'
+hg init repo-2025
+cd repo-2025
+echo a > a
+echo b > b
+hg ci -qAm addab
+echo a >> a
+echo b >> b
+hg qnew -f patch
+hg up -qC 0
+echo c > c
+hg ci -qAm addc
+hg up -qC 1
+echo '% refresh with tip != qtip'
+hg --config diff.nodates=1 qrefresh -I b 2>&1 \
+    | sed 's/saving bundle.*/saving bundle.../g'
+echo '% status after refresh'
+hg st
+echo '% b after refresh'
+cat b
+echo '% patch file after refresh'
+cat .hg/patches/patch
+cd ..
+
+
 echo % issue1441 with git patches
 hg init repo-1441-git
 cd repo-1441-git