hgbook

diff es/examples/mq.id @ 1114:527b86d55d4a

inotify: update installation information

inotify is shipped in Mercurial since 1.0, which greatly simplifies the installation process
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Sun Dec 13 16:35:56 2009 +0900 (2009-12-13)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/es/examples/mq.id	Sun Dec 13 16:35:56 2009 +0900
     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