hgbook
annotate en/examples/mq.id @ 90:9d0432dc167a
Don't forget to enable mq extension.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu Oct 12 14:46:54 2006 -0700 (2006-10-12) |
parents | ec1f144968de |
children | 914babdc99c8 |
rev | line source |
---|---|
bos@50 | 1 #!/bin/sh |
bos@50 | 2 |
bos@90 | 3 echo '[extensions]' >> $HGRC |
bos@90 | 4 echo 'hgext.mq =' >> $HGRC |
bos@90 | 5 |
bos@50 | 6 hg init a |
bos@50 | 7 cd a |
bos@50 | 8 hg qinit |
bos@50 | 9 echo 'int x;' > test.c |
bos@50 | 10 hg ci -Ama |
bos@50 | 11 |
bos@50 | 12 hg qnew first.patch |
bos@50 | 13 echo 'float c;' >> test.c |
bos@50 | 14 hg qrefresh |
bos@50 | 15 |
bos@50 | 16 hg qnew second.patch |
bos@50 | 17 echo 'double u;' > other.c |
bos@50 | 18 hg add other.c |
bos@50 | 19 hg qrefresh |
bos@50 | 20 |
bos@50 | 21 #$ name: out |
bos@50 | 22 |
bos@50 | 23 hg qapplied |
bos@50 | 24 hg log -r qbase:qtip |
bos@50 | 25 hg export second.patch |
bos@74 | 26 |
bos@74 | 27 #$ name: |
bos@74 | 28 exit 0 |