hgbook
annotate en/examples/cmdref @ 167:e67251ac336f
Small portability change. "grep -P" doesn't work on Debian.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue Mar 27 01:15:34 2007 -0500 (2007-03-27) |
parents | |
children |
rev | line source |
---|---|
bos@133 | 1 #!/bin/bash |
bos@133 | 2 |
bos@133 | 3 hg init diff |
bos@133 | 4 cd diff |
bos@133 | 5 cat > myfile.c <<EOF |
bos@133 | 6 int myfunc() |
bos@133 | 7 { |
bos@133 | 8 return 1; |
bos@133 | 9 } |
bos@133 | 10 EOF |
bos@133 | 11 hg ci -Ama |
bos@133 | 12 |
bos@133 | 13 sed -ie 's/return 1/return 10/' myfile.c |
bos@133 | 14 |
bos@133 | 15 #$ name: diff-p |
bos@133 | 16 |
bos@133 | 17 echo '[diff]' >> $HGRC |
bos@133 | 18 echo 'showfunc = False' >> $HGRC |
bos@133 | 19 |
bos@133 | 20 hg diff |
bos@133 | 21 |
bos@133 | 22 hg diff -p |