hgbook
view en/examples/daily.revert @ 171:8c1703a98266
Add a dependency on htlatex to HTML targets, even though we don't call it.
If the files it ships with aren't present, we can't build HTML.
If the files it ships with aren't present, we can't build HTML.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon Mar 26 23:57:58 2007 -0700 (2007-03-26) |
parents | 3af28630fe8c |
children |
line source
1 #!/bin/bash
3 hg init a
4 cd a
5 echo 'original content' > file
6 hg ci -Ama
8 #$ name: modify
10 cat file
11 echo unwanted change >> file
12 hg diff file
14 #$ name: unmodify
16 hg status
17 hg revert file
18 cat file
20 #$ name: status
22 hg status
23 cat file.orig
25 #$ name:
27 rm file.orig
29 #$ name: add
31 echo oops > oops
32 hg add oops
33 hg status oops
34 hg revert oops
35 hg status
37 #$ name:
39 rm oops
41 #$ name: remove
43 hg remove file
44 hg status
45 hg revert file
46 hg status
47 ls file
49 #$ name: missing
51 rm file
52 hg status
53 hg revert file
54 ls file
56 #$ name: copy
58 hg copy file new-file
59 hg revert new-file
60 hg status
62 #$ name:
64 rm new-file
66 #$ name: rename
68 hg rename file new-file
69 hg revert new-file
70 hg status
72 #$ name: rename-orig
73 hg revert file
74 hg status