hgbook

annotate es/examples/mq.id @ 690:2c266a253b44

Merge with myself
author Bryan O'Sullivan <bos@serpentine.com>
date Sun Apr 26 23:23:06 2009 -0700 (2009-04-26)
parents
children
rev   line source
igor@333 1 #!/bin/sh
igor@333 2
igor@333 3 echo '[extensions]' >> $HGRC
igor@333 4 echo 'hgext.mq =' >> $HGRC
igor@333 5
igor@333 6 hg init a
igor@333 7 cd a
igor@333 8 hg qinit
igor@333 9 echo 'int x;' > test.c
igor@333 10 hg ci -Ama
igor@333 11
igor@333 12 hg qnew first.patch
igor@333 13 echo 'float c;' >> test.c
igor@333 14 hg qrefresh
igor@333 15
igor@333 16 hg qnew second.patch
igor@333 17 echo 'double u;' > other.c
igor@333 18 hg add other.c
igor@333 19 hg qrefresh
igor@333 20
igor@333 21 #$ name: output
igor@333 22
igor@333 23 hg qapplied
igor@333 24 hg log -r qbase:qtip
igor@333 25 hg export second.patch
igor@333 26
igor@333 27 #$ name:
igor@333 28 exit 0