# HG changeset patch # User Patrick Mezard # Date 2010-02-07 10:38:36 # Node ID b8801b58bbd8fe42571e52c0ba8646bb59077efb # Parent d355cebde5e666670b76b5f7961fadb69eac72f8 test-mq-qrefresh: test qrefresh when tip != qtip diff --git a/tests/test-mq-qrefresh b/tests/test-mq-qrefresh --- a/tests/test-mq-qrefresh +++ b/tests/test-mq-qrefresh @@ -155,6 +155,31 @@ hg qrefresh 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 diff --git a/tests/test-mq-qrefresh.out b/tests/test-mq-qrefresh.out --- a/tests/test-mq-qrefresh.out +++ b/tests/test-mq-qrefresh.out @@ -259,6 +259,26 @@ diff -r 000000000000 b +++ b/b @@ -0,0 +1,1 @@ +a +% issue2025: qrefresh does not honor filtering options when tip != qtip +% refresh with tip != qtip +saving bundle... +adding branch +adding changesets +adding manifests +adding file changes +added 1 changesets with 1 changes to 1 files +% status after refresh +M a +% b after refresh +b +b +% patch file after refresh +diff -r 1a60229be7ac b +--- a/b ++++ b/b +@@ -1,1 +1,2 @@ + b ++b % issue1441 with git patches diff --git a/b b/b new file mode 100644