hgbook

annotate es/examples/daily.revert @ 643:61ac4138e086

Update Chinese translation
author Dongsheng Song <dongsheng.song@gmail.com>
date Tue Mar 17 16:25:30 2009 +0800 (2009-03-17)
parents
children
rev   line source
igor@333 1 #!/bin/bash
igor@333 2
igor@333 3 hg init a
igor@333 4 cd a
igor@333 5 echo 'original content' > file
igor@333 6 hg ci -Ama
igor@333 7
igor@333 8 #$ name: modify
igor@333 9
igor@333 10 cat file
igor@333 11 echo unwanted change >> file
igor@333 12 hg diff file
igor@333 13
igor@333 14 #$ name: unmodify
igor@333 15
igor@333 16 hg status
igor@333 17 hg revert file
igor@333 18 cat file
igor@333 19
igor@333 20 #$ name: status
igor@333 21
igor@333 22 hg status
igor@333 23 cat file.orig
igor@333 24
igor@333 25 #$ name:
igor@333 26
igor@333 27 rm file.orig
igor@333 28
igor@333 29 #$ name: add
igor@333 30
igor@333 31 echo oops > oops
igor@333 32 hg add oops
igor@333 33 hg status oops
igor@333 34 hg revert oops
igor@333 35 hg status
igor@333 36
igor@333 37 #$ name:
igor@333 38
igor@333 39 rm oops
igor@333 40
igor@333 41 #$ name: remove
igor@333 42
igor@333 43 hg remove file
igor@333 44 hg status
igor@333 45 hg revert file
igor@333 46 hg status
igor@333 47 ls file
igor@333 48
igor@333 49 #$ name: missing
igor@333 50
igor@333 51 rm file
igor@333 52 hg status
igor@333 53 hg revert file
igor@333 54 ls file
igor@333 55
igor@333 56 #$ name: copy
igor@333 57
igor@333 58 hg copy file new-file
igor@333 59 hg revert new-file
igor@333 60 hg status
igor@333 61
igor@333 62 #$ name:
igor@333 63
igor@333 64 rm new-file
igor@333 65
igor@333 66 #$ name: rename
igor@333 67
igor@333 68 hg rename file new-file
igor@333 69 hg revert new-file
igor@333 70 hg status
igor@333 71
igor@333 72 #$ name: rename-orig
igor@333 73 hg revert file
igor@333 74 hg status