hgbook

view es/examples/daily.files @ 964:6b680d569bb4

deleting a bunch of files not longer necessary to build the documentation.
Adding missing newly files needed to build the documentation
author Romain PELISSE <belaran@gmail.com>
date Sun Aug 16 04:58:01 2009 +0200 (2009-08-16)
parents
children
line source
1 #!/bin/bash
3 #$ name: add
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
14 #$ name: add-dir
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'
24 #$ name:
26 cd ..
28 #$ name: hidden
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
42 #$ name: remove
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
55 #$ name:
57 cd ..
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
68 #$ name: remove-after
70 hg remove --after a
71 hg status
73 #$ name: recover-missing
74 hg revert a
75 cat a
76 hg status
78 #$ name:
80 cd ..
82 #$ name: addremove
84 hg init addremove-example
85 cd addremove-example
86 echo a > a
87 echo b > b
88 hg addremove
90 #$ name: commit-addremove
92 echo c > c
93 hg commit -A -m 'Commit with addremove'