view en/examples/cmdref @ 555:b1e84c7882f8

Translated license
author Igor Támara <igor@tamarapatino.org>
date Tue, 16 Dec 2008 23:49:47 -0500
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