hgbook

annotate en/examples/daily.revert @ 235:80f387d13bfe

Fix a few command references.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun May 27 09:45:13 2007 -0700 (2007-05-27)
parents 3af28630fe8c
children
rev   line source
bos@122 1 #!/bin/bash
bos@122 2
bos@122 3 hg init a
bos@122 4 cd a
bos@122 5 echo 'original content' > file
bos@122 6 hg ci -Ama
bos@122 7
bos@122 8 #$ name: modify
bos@122 9
bos@122 10 cat file
bos@122 11 echo unwanted change >> file
bos@122 12 hg diff file
bos@122 13
bos@122 14 #$ name: unmodify
bos@122 15
bos@122 16 hg status
bos@122 17 hg revert file
bos@122 18 cat file
bos@122 19
bos@122 20 #$ name: status
bos@122 21
bos@122 22 hg status
bos@122 23 cat file.orig
bos@122 24
bos@122 25 #$ name:
bos@122 26
bos@122 27 rm file.orig
bos@122 28
bos@122 29 #$ name: add
bos@122 30
bos@122 31 echo oops > oops
bos@122 32 hg add oops
bos@122 33 hg status oops
bos@122 34 hg revert oops
bos@122 35 hg status
bos@122 36
bos@122 37 #$ name:
bos@122 38
bos@122 39 rm oops
bos@122 40
bos@122 41 #$ name: remove
bos@122 42
bos@122 43 hg remove file
bos@122 44 hg status
bos@122 45 hg revert file
bos@122 46 hg status
bos@122 47 ls file
bos@122 48
bos@122 49 #$ name: missing
bos@122 50
bos@122 51 rm file
bos@122 52 hg status
bos@122 53 hg revert file
bos@122 54 ls file
bos@122 55
bos@122 56 #$ name: copy
bos@122 57
bos@122 58 hg copy file new-file
bos@122 59 hg revert new-file
bos@122 60 hg status
bos@122 61
bos@122 62 #$ name:
bos@122 63
bos@122 64 rm new-file
bos@122 65
bos@122 66 #$ name: rename
bos@122 67
bos@122 68 hg rename file new-file
bos@122 69 hg revert new-file
bos@122 70 hg status
bos@122 71
bos@122 72 #$ name: rename-orig
bos@122 73 hg revert file
bos@122 74 hg status