hgbook

annotate ja/examples/cmdref @ 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
rev   line source
foozy@708 1 #!/bin/bash
foozy@708 2
foozy@708 3 hg init diff
foozy@708 4 cd diff
foozy@708 5 cat > myfile.c <<EOF
foozy@708 6 int myfunc()
foozy@708 7 {
foozy@708 8 return 1;
foozy@708 9 }
foozy@708 10 EOF
foozy@708 11 hg ci -Ama
foozy@708 12
foozy@708 13 sed -ie 's/return 1/return 10/' myfile.c
foozy@708 14
foozy@708 15 #$ name: diff-p
foozy@708 16
foozy@708 17 echo '[diff]' >> $HGRC
foozy@708 18 echo 'showfunc = False' >> $HGRC
foozy@708 19
foozy@708 20 hg diff
foozy@708 21
foozy@708 22 hg diff -p