view es/examples/cmdref @ 729:ccda4952e5f3

Update Chinese translation
author Dongsheng Song <dongsheng.song@gmail.com>
date Thu, 12 Mar 2009 17:12:18 +0800
parents 04c08ad7e92e
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