...
1handle hg
2
3env user='Russ Cox <rsc@golang.org>'
4
5hg init
6
7env date=2018-07-17T12:41:39-04:00
8cp x_cf92c7b.go x.go
9hg add x.go
10hg commit --user=$user --date=$date -m 'initial commit'
11
12env date=2018-07-17T12:41:57-04:00
13cp x_52853eb.go x.go
14hg commit --user=$user --date=$date -m 'add X' x.go
15
16env date=2018-07-17T12:42:07-04:00
17cp x_7fff7f3.go x.go
18hg commit --user=$user --date=$date -m 'gofmt' x.go
19hg tag --user=$user --date=$date v1.0.0
20
21env date=2018-07-17T12:42:28-04:00
22cp x_fa4f5d6.go x.go
23hg commit --user=$user --date=$date -m 'X->XX' x.go
24
25env date=2018-07-17T12:42:36-04:00
26cp x_d7ae1e4.go x.go
27hg commit --user=$user --date=$date -m 'gofmt' x.go
28hg tag --user=$user --date=$date v2.0.0
29
30env date=2018-07-17T12:42:53-04:00
31cp x_7303f77.go x.go
32hg commit --user=$user --date=$date -m 'add XXX' x.go
33
34env date=2018-07-17T12:47:59-04:00
35hg update v1.0.0
36cp x_1abc5ff.go x.go
37hg commit --user=$user --date=$date -m 'comment' x.go
38
39env date=2018-07-17T12:48:22-04:00
40cp x_731e3b1.go x.go
41hg commit --user=$user --date=$date -m 'prerelease' x.go
42hg tag --user=$user --date=$date v1.1.0-pre
43
44env date=2018-07-17T12:48:49-04:00
45cp x_fb3c628.go x.go
46hg commit --user=$user --date=$date -m 'working' x.go
47
48env date=2018-07-17T12:49:05-04:00
49cp x_9f6f860.go x.go
50hg commit --user=$user --date=$date -m 'v1.2.0' x.go
51hg tag --user=$user --date=$date v1.2.0
52
53env date=2018-07-17T12:49:42-04:00
54cp x_d2d4c3e.go x.go
55hg commit --user=$user --date=$date -m 'more' x.go
56hg tag --user=$user --date=$date morework
57
58hg log -r ':' --template '{node|short} {desc|strip|firstline}\n'
59cmp stdout .hg-log
60
61-- .hg-log --
629dc9138de2e5 initial commit
63ee0106da3c7c add X
64d6ad170f61d4 gofmt
6590c54d4351ee Added tag v1.0.0 for changeset d6ad170f61d4
66c6260ab8dc3e X->XX
67e64782fcadfd gofmt
68d6ad604046f6 Added tag v2.0.0 for changeset e64782fcadfd
69663753d3ac63 add XXX
704555a6dd66c0 comment
7190da67a9bf0c prerelease
72d7c15fbd635d Added tag v1.1.0-pre for changeset 90da67a9bf0c
73accb169a3696 working
7407462d11385f v1.2.0
75ed9a22ebb8a1 Added tag v1.2.0 for changeset 07462d11385f
76498b291aa133 more
772840708d1294 Added tag morework for changeset 498b291aa133
78-- x_1abc5ff.go --
79package legacytest
80
81// add comment
82const X = 1
83-- x_52853eb.go --
84package legacytest
85const X = 1
86-- x_7303f77.go --
87package legacytest
88
89const XX = 2
90
91const XXX = 3
92-- x_731e3b1.go --
93package legacytest
94
95// add comment again
96const X = 1
97-- x_7fff7f3.go --
98package legacytest
99
100const X = 1
101-- x_9f6f860.go --
102package legacytest
103
104// add comment again!!!
105const X = 1
106-- x_cf92c7b.go --
107package legacytest
108-- x_d2d4c3e.go --
109package legacytest
110
111// add comment hack hack hack
112const X = 1
113-- x_d7ae1e4.go --
114package legacytest
115
116const XX = 2
117-- x_fa4f5d6.go --
118package legacytest
119const XX = 2
120-- x_fb3c628.go --
121package legacytest
122
123// add comment fixed
124const X = 1
View as plain text