view en/examples/cmdref @ 824:c8d662d3cb40

Improve chapter 1 further, based on comments.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun, 03 May 2009 19:23:08 -0700
parents 1e013fbe35f7
children
line wrap: on
line source

#!/bin/bash

hg init diff
cd diff
cat > myfile.c <<EOF
int myfunc()
{
    return 1;
}
EOF
hg ci -Ama

sed -ie 's/return 1/return 10/' myfile.c

#$ name: diff-p

echo '[diff]' >> $HGRC
echo 'showfunc = False' >> $HGRC

hg diff

hg diff -p