hgbook
diff ja/examples/daily.revert @ 1078:708f570346a9
2.4.1 some para zh translated
author | Zhaoping Sun <zhaopingsun@gmail.com> |
---|---|
date | Wed Nov 18 22:22:34 2009 -0500 (2009-11-18) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ja/examples/daily.revert Wed Nov 18 22:22:34 2009 -0500 1.3 @@ -0,0 +1,74 @@ 1.4 +#!/bin/bash 1.5 + 1.6 +hg init a 1.7 +cd a 1.8 +echo 'original content' > file 1.9 +hg ci -Ama 1.10 + 1.11 +#$ name: modify 1.12 + 1.13 +cat file 1.14 +echo unwanted change >> file 1.15 +hg diff file 1.16 + 1.17 +#$ name: unmodify 1.18 + 1.19 +hg status 1.20 +hg revert file 1.21 +cat file 1.22 + 1.23 +#$ name: status 1.24 + 1.25 +hg status 1.26 +cat file.orig 1.27 + 1.28 +#$ name: 1.29 + 1.30 +rm file.orig 1.31 + 1.32 +#$ name: add 1.33 + 1.34 +echo oops > oops 1.35 +hg add oops 1.36 +hg status oops 1.37 +hg revert oops 1.38 +hg status 1.39 + 1.40 +#$ name: 1.41 + 1.42 +rm oops 1.43 + 1.44 +#$ name: remove 1.45 + 1.46 +hg remove file 1.47 +hg status 1.48 +hg revert file 1.49 +hg status 1.50 +ls file 1.51 + 1.52 +#$ name: missing 1.53 + 1.54 +rm file 1.55 +hg status 1.56 +hg revert file 1.57 +ls file 1.58 + 1.59 +#$ name: copy 1.60 + 1.61 +hg copy file new-file 1.62 +hg revert new-file 1.63 +hg status 1.64 + 1.65 +#$ name: 1.66 + 1.67 +rm new-file 1.68 + 1.69 +#$ name: rename 1.70 + 1.71 +hg rename file new-file 1.72 +hg revert new-file 1.73 +hg status 1.74 + 1.75 +#$ name: rename-orig 1.76 +hg revert file 1.77 +hg status