hgbook

view en/examples/daily.files @ 130:26b7a4e943aa

Describe the bisect extension.
author Bryan O'Sullivan <bos@serpentine.com>
date Thu Dec 28 14:06:15 2006 -0800 (2006-12-28)
parents 6f37e6a7d8cd
children 5b034c2b74f7
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:
44 cd ..
46 #$ name: remove
48 hg init remove-example
49 cd remove-example
50 echo a > a
51 mkdir b
52 echo b > b/b
53 hg add a b
54 hg commit -m 'Small example for file removal'
55 hg remove a
56 hg status
57 hg remove b
59 #$ name:
61 cd ..
63 #$ name: missing
64 hg init missing-example
65 cd missing-example
66 echo a > a
67 hg add a
68 hg commit -m'File about to be missing'
69 rm a
70 hg status
72 #$ name: remove-after
74 hg remove --after a
75 hg status
77 #$ name: recover-missing
78 hg revert a
79 cat a
80 hg status
82 #$ name:
84 cd ..
86 #$ name: addremove
88 hg init addremove-example
89 cd addremove-example
90 echo a > a
91 echo b > b
92 hg addremove
94 #$ name: commit-addremove
96 echo c > c
97 hg commit -A -m 'Commit with addremove'