Mercurial > hg
changeset 5894:e181665c1c79
keyword: add very simple mq test
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Sat, 19 Jan 2008 03:06:01 +0100 |
parents | 87e6b4f4871b |
children | f1ac41359b36 |
files | tests/test-keyword tests/test-keyword.out |
diffstat | 2 files changed, 39 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-keyword Fri Jan 18 17:01:28 2008 -0800 +++ b/tests/test-keyword Sat Jan 19 03:06:01 2008 +0100 @@ -3,6 +3,7 @@ cat <<EOF >> $HGRCPATH [extensions] hgext.keyword = +hgext.mq = [keyword] * = b = ignore @@ -88,9 +89,19 @@ hg -v kwexpand echo % compare changenodes in a c cat a c -echo % rollback and remove c -hg rollback -rm c + +echo % qimport +hg qimport -r tip -n mqtest.diff +echo % keywords should not be expanded in patch +cat .hg/patches/mqtest.diff +echo % qpop +hg qpop +echo % qgoto - should imply qpush +hg qgoto mqtest.diff +echo % cat +cat c +echo % qpop and move on +hg qpop echo % copy hg cp a c
--- a/tests/test-keyword.out Fri Jan 18 17:01:28 2008 -0800 +++ b/tests/test-keyword.out Sat Jan 19 03:06:01 2008 +0100 @@ -162,8 +162,31 @@ xxx $ $Id: c,v ba4426d1938e 1970/01/01 00:00:01 user $ tests for different changenodes -% rollback and remove c -rolling back last transaction +% qimport +% keywords should not be expanded in patch +# HG changeset patch +# User User Name <user@example.com> +# Date 1 0 +# Node ID ba4426d1938ec9673e03ab274d88c44e24618f7f +# Parent f782df5f9602483b4e51c31a12315f353bba380c +cndiff + +diff -r f782df5f9602 -r ba4426d1938e c +--- /dev/null Thu Jan 01 00:00:00 1970 +0000 ++++ b/c Thu Jan 01 00:00:01 1970 +0000 +@@ -0,0 +1,2 @@ ++$Id$ ++tests for different changenodes +% qpop +Patch queue now empty +% qgoto - should imply qpush +applying mqtest.diff +Now at: mqtest.diff +% cat +$Id: c,v ba4426d1938e 1970/01/01 00:00:01 user $ +tests for different changenodes +% qpop and move on +Patch queue now empty % copy % kwfiles added a