Mercurial > hgbook
comparison es/examples/daily.files @ 432:04c08ad7e92e
Translated svgs dummy .tex towards building
author | Igor TAmara <igor@tamarapatino.org> |
---|---|
date | Sat, 18 Oct 2008 07:48:21 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
431:d13a05515acf | 432:04c08ad7e92e |
---|---|
1 #!/bin/bash | |
2 | |
3 #$ name: add | |
4 | |
5 hg init add-example | |
6 cd add-example | |
7 echo a > a | |
8 hg status | |
9 hg add a | |
10 hg status | |
11 hg commit -m 'Added one file' | |
12 hg status | |
13 | |
14 #$ name: add-dir | |
15 | |
16 mkdir b | |
17 echo b > b/b | |
18 echo c > b/c | |
19 mkdir b/d | |
20 echo d > b/d/d | |
21 hg add b | |
22 hg commit -m 'Added all files in subdirectory' | |
23 | |
24 #$ name: | |
25 | |
26 cd .. | |
27 | |
28 #$ name: hidden | |
29 | |
30 hg init hidden-example | |
31 cd hidden-example | |
32 mkdir empty | |
33 touch empty/.hidden | |
34 hg add empty/.hidden | |
35 hg commit -m 'Manage an empty-looking directory' | |
36 ls empty | |
37 cd .. | |
38 hg clone hidden-example tmp | |
39 ls tmp | |
40 ls tmp/empty | |
41 | |
42 #$ name: remove | |
43 | |
44 hg init remove-example | |
45 cd remove-example | |
46 echo a > a | |
47 mkdir b | |
48 echo b > b/b | |
49 hg add a b | |
50 hg commit -m 'Small example for file removal' | |
51 hg remove a | |
52 hg status | |
53 hg remove b | |
54 | |
55 #$ name: | |
56 | |
57 cd .. | |
58 | |
59 #$ name: missing | |
60 hg init missing-example | |
61 cd missing-example | |
62 echo a > a | |
63 hg add a | |
64 hg commit -m 'File about to be missing' | |
65 rm a | |
66 hg status | |
67 | |
68 #$ name: remove-after | |
69 | |
70 hg remove --after a | |
71 hg status | |
72 | |
73 #$ name: recover-missing | |
74 hg revert a | |
75 cat a | |
76 hg status | |
77 | |
78 #$ name: | |
79 | |
80 cd .. | |
81 | |
82 #$ name: addremove | |
83 | |
84 hg init addremove-example | |
85 cd addremove-example | |
86 echo a > a | |
87 echo b > b | |
88 hg addremove | |
89 | |
90 #$ name: commit-addremove | |
91 | |
92 echo c > c | |
93 hg commit -A -m 'Commit with addremove' |