hgbook

diff es/examples/mq.id @ 649:d13c7c706a58

Merge with http://hg.serpentine.com/mercurial/book
author Dongsheng Song <dongsheng.song@gmail.com>
date Fri Mar 20 15:40:06 2009 +0800 (2009-03-20)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/es/examples/mq.id	Fri Mar 20 15:40:06 2009 +0800
     1.3 @@ -0,0 +1,28 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +echo '[extensions]' >> $HGRC
     1.7 +echo 'hgext.mq =' >> $HGRC
     1.8 +
     1.9 +hg init a
    1.10 +cd a
    1.11 +hg qinit
    1.12 +echo 'int x;' > test.c
    1.13 +hg ci -Ama
    1.14 +
    1.15 +hg qnew first.patch
    1.16 +echo 'float c;' >> test.c
    1.17 +hg qrefresh
    1.18 +
    1.19 +hg qnew second.patch
    1.20 +echo 'double u;' > other.c
    1.21 +hg add other.c
    1.22 +hg qrefresh
    1.23 +
    1.24 +#$ name: output
    1.25 +
    1.26 +hg qapplied
    1.27 +hg log -r qbase:qtip
    1.28 +hg export second.patch
    1.29 +
    1.30 +#$ name:
    1.31 +exit 0