bos@50: #!/bin/sh bos@50: bos@90: echo '[extensions]' >> $HGRC bos@90: echo 'hgext.mq =' >> $HGRC bos@90: bos@50: hg init a bos@50: cd a bos@50: hg qinit bos@50: echo 'int x;' > test.c bos@50: hg ci -Ama bos@50: bos@50: hg qnew first.patch bos@50: echo 'float c;' >> test.c bos@50: hg qrefresh bos@50: bos@50: hg qnew second.patch bos@50: echo 'double u;' > other.c bos@50: hg add other.c bos@50: hg qrefresh bos@50: bos@155: #$ name: output bos@50: bos@50: hg qapplied bos@50: hg log -r qbase:qtip bos@50: hg export second.patch bos@74: bos@74: #$ name: bos@74: exit 0