hgbook
diff en/examples/cmdref @ 281:a880d07f2d29
Fix repository paths of data/index files in filelog diagram.
Data/index files are stored in the repository at .hg/store/data, not .hg/data.
Modify the filelog diagram to reflect this.
Data/index files are stored in the repository at .hg/store/data, not .hg/data.
Modify the filelog diagram to reflect this.
author | Arun Thomas <arun.thomas@gmail.com> |
---|---|
date | Mon Dec 17 23:16:59 2007 -0500 (2007-12-17) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/en/examples/cmdref Mon Dec 17 23:16:59 2007 -0500 1.3 @@ -0,0 +1,22 @@ 1.4 +#!/bin/bash 1.5 + 1.6 +hg init diff 1.7 +cd diff 1.8 +cat > myfile.c <<EOF 1.9 +int myfunc() 1.10 +{ 1.11 + return 1; 1.12 +} 1.13 +EOF 1.14 +hg ci -Ama 1.15 + 1.16 +sed -ie 's/return 1/return 10/' myfile.c 1.17 + 1.18 +#$ name: diff-p 1.19 + 1.20 +echo '[diff]' >> $HGRC 1.21 +echo 'showfunc = False' >> $HGRC 1.22 + 1.23 +hg diff 1.24 + 1.25 +hg diff -p