hgbook

annotate ja/examples/mq.id @ 849:93be8b272db7

Home page template.
author gpiancastelli
date Sat Aug 22 18:22:25 2009 +0200 (2009-08-22)
parents
children
rev   line source
foozy@708 1 #!/bin/sh
foozy@708 2
foozy@708 3 echo '[extensions]' >> $HGRC
foozy@708 4 echo 'hgext.mq =' >> $HGRC
foozy@708 5
foozy@708 6 hg init a
foozy@708 7 cd a
foozy@708 8 hg qinit
foozy@708 9 echo 'int x;' > test.c
foozy@708 10 hg ci -Ama
foozy@708 11
foozy@708 12 hg qnew first.patch
foozy@708 13 echo 'float c;' >> test.c
foozy@708 14 hg qrefresh
foozy@708 15
foozy@708 16 hg qnew second.patch
foozy@708 17 echo 'double u;' > other.c
foozy@708 18 hg add other.c
foozy@708 19 hg qrefresh
foozy@708 20
foozy@708 21 #$ name: output
foozy@708 22
foozy@708 23 hg qapplied
foozy@708 24 hg log -r qbase:qtip
foozy@708 25 hg export second.patch
foozy@708 26
foozy@708 27 #$ name:
foozy@708 28 exit 0