1 handle hg
2
3 hg init
4
5 env date=2018-04-17T15:43:22-04:00
6 unquote ''
7 cp stdout README
8 hg add README
9 hg commit --user=rsc --date=$date -m 'empty README'
10 hg branch tagbranch
11 hg tag --user=rsc --date=$date v1.2.3
12 hg update default
13
14 env date=2018-04-17T15:45:48-04:00
15 hg branch v2
16 echo 'v2'
17 cp stdout v2
18 hg add v2
19 hg commit --user=rsc --date=$date -m 'v2'
20 hg update tagbranch
21 hg tag --user=rsc --date=$date -r v2 v2.3
22 hg tag --user=rsc --date=$date -r v2 v2.0.1
23 hg update v2
24 hg branch v2.3.4
25
26 env date=2018-04-17T16:00:19-04:00
27 echo 'intermediate'
28 cp stdout foo.txt
29 hg add foo.txt
30 hg commit --user=rsc --date=$date -m 'intermediate'
31
32 env date=2018-04-17T16:00:32-04:00
33 echo 'another'
34 cp stdout another.txt
35 hg add another.txt
36 hg commit --user=rsc --date=$date -m 'another'
37 hg update tagbranch
38 hg tag --user=rsc --date=$date -r v2.3.4 v2.0.2
39
40 env date=2018-04-17T16:16:52-04:00
41 hg update default
42 hg branch v3
43 mkdir v3/sub/dir
44 echo 'v3/sub/dir/file'
45 cp stdout v3/sub/dir/file.txt
46 hg add v3
47 hg commit --user=rsc --date=$date -m 'add v3/sub/dir/file.txt'
48
49 env date=2018-04-17T22:23:00-04:00
50 hg update default
51 hg tag --user=rsc --date=$date -r v1.2.3 v1.2.4-annotated
52
53 env date=2018-06-27T12:15:24-04:00
54 hg update v2
55 unquote ''
56 cp stdout dummy
57 hg add dummy
58 hg commit --user=rsc --date=$date -m 'dummy'
59
60 env date=2018-06-27T12:16:10-04:00
61 hg update v2.3.4
62 hg branch v2.3.4
63 unquote ''
64 cp stdout dummy
65 hg add dummy
66 hg commit --user=rsc --date=$date -m 'dummy'
67
68 hg book v2 -r v2.0.2 --force
69 hg book v2.3.4 -r v2.0.1 --force
70
71 hg log -G --debug
72
73 hg tags
74 cmp stdout .hg-tags
75
76 hg branches
77 cmp stdout .hg-branches
78
79 hg bookmarks
80 cmp stdout .hg-bookmarks
81
82 -- .hg-tags --
83 tip 11:745aacc8b24d
84 v2.0.2 6:b1ed98abc268
85 v2.3 2:a546811101e1
86 v2.0.1 2:a546811101e1
87 v1.2.4-annotated 0:c0186fb00e50
88 v1.2.3 0:c0186fb00e50
89 -- .hg-branches --
90 v2.3.4 11:745aacc8b24d
91 v2 10:2b5ca8689628
92 default 9:a9a2a32d1392
93 v3 8:442174d28f65
94 tagbranch 7:1a3473c317b4
95 -- .hg-bookmarks --
96 v2 6:b1ed98abc268
97 v2.3.4 2:a546811101e1
98
View as plain text