hgbook

view en/examples/cmdref @ 286:f992b16d18a1

hg-interdiff: handle single-file diffs
author Nicholas Riley <njriley@uiuc.edu>
date Sun Jan 13 08:16:21 2008 -0800 (2008-01-13)
parents
children
line source
1 #!/bin/bash
3 hg init diff
4 cd diff
5 cat > myfile.c <<EOF
6 int myfunc()
7 {
8 return 1;
9 }
10 EOF
11 hg ci -Ama
13 sed -ie 's/return 1/return 10/' myfile.c
15 #$ name: diff-p
17 echo '[diff]' >> $HGRC
18 echo 'showfunc = False' >> $HGRC
20 hg diff
22 hg diff -p