hgbook

annotate en/examples/mq.id @ 50:8b0d389cf6e0

Update MQ chapter to match recent bug fixes.
author Bryan O'Sullivan <bos@serpentine.com>
date Thu Jul 27 10:20:55 2006 -0700 (2006-07-27)
parents
children ec1f144968de
rev   line source
bos@50 1 #!/bin/sh
bos@50 2
bos@50 3 hg init a
bos@50 4 cd a
bos@50 5 hg qinit
bos@50 6 echo 'int x;' > test.c
bos@50 7 hg ci -Ama
bos@50 8
bos@50 9 hg qnew first.patch
bos@50 10 echo 'float c;' >> test.c
bos@50 11 hg qrefresh
bos@50 12
bos@50 13 hg qnew second.patch
bos@50 14 echo 'double u;' > other.c
bos@50 15 hg add other.c
bos@50 16 hg qrefresh
bos@50 17
bos@50 18 #$ name: out
bos@50 19
bos@50 20 hg qapplied
bos@50 21 hg log -r qbase:qtip
bos@50 22 hg export second.patch