hgbook

diff es/examples/mq.id @ 362:90b67ac5862b

translated up to section 1.4.1
author Javier Rojas <jerojasro@devnull.li>
date Sat Oct 25 15:01:39 2008 -0500 (2008-10-25)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/es/examples/mq.id	Sat Oct 25 15:01:39 2008 -0500
     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