Mercurial > hg
diff tests/test-mq @ 4173:7307d2e98b32
fix qrefresh'ing an empty patch
This is not superefficient (the commit will have to walk the whole tree),
but it works.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 10 Mar 2007 22:03:23 -0300 |
parents | 785ad8cd1d31 |
children | ba51a8225a60 |
line wrap: on
line diff
--- a/tests/test-mq Sat Mar 10 22:03:22 2007 -0300 +++ b/tests/test-mq Sat Mar 10 22:03:23 2007 -0300 @@ -55,6 +55,18 @@ -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" .hg/patches/test.patch +echo % empty qrefresh + +hg qrefresh -X a +echo 'revision:' +hg diff -r -2 -r -1 +echo 'patch:' +cat .hg/patches/test.patch +echo 'working dir diff:' +hg diff --nodates -q +# restore things +hg qrefresh + echo % qpop hg qpop