hgbook

annotate en/examples/mq.id @ 67:a2f0b010d6e3

Don't assume that python is in /usr/bin.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon Aug 07 15:35:14 2006 -0700 (2006-08-07)
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