comparison tests/test-rebase-detach.t @ 35385:469b06b4c3ca

tests: add commit hashes to log commands in rebase tests Commit hashes are a useful way to ensure the content of commits made in the tests are not changing, even if we don't query every aspect of every commit. (And some properties, like extras, are rarely printed at all.) Many of the rebase log -G calls didn't show hashes; by adding hashes to places that weren't showing them we can help protect those tests from unwanted changes. Differential Revision: https://phab.mercurial-scm.org/D1650
author Phil Cohen <phillco@fb.com>
date Sun, 10 Dec 2017 21:57:37 -0800
parents d4df141f90d1
children 4441705b7111
comparison
equal deleted inserted replaced
35384:b9bdee046cc2 35385:469b06b4c3ca
1 $ cat >> $HGRCPATH <<EOF 1 $ cat >> $HGRCPATH <<EOF
2 > [extensions] 2 > [extensions]
3 > rebase= 3 > rebase=
4 > 4 >
5 > [alias] 5 > [alias]
6 > tglog = log -G --template "{rev}: '{desc}'\n" 6 > tglog = log -G --template "{rev}: {node|short} '{desc}'\n"
7 > 7 >
8 > [extensions] 8 > [extensions]
9 > drawdag=$TESTDIR/drawdag.py 9 > drawdag=$TESTDIR/drawdag.py
10 > EOF 10 > EOF
11 11
63 rebasing 3:e7b3f00ed42e "D" (D) 63 rebasing 3:e7b3f00ed42e "D" (D)
64 rebasing 4:69a34c08022a "E" (E tip) 64 rebasing 4:69a34c08022a "E" (E tip)
65 saved backup bundle to $TESTTMP/a2/.hg/strip-backup/e7b3f00ed42e-a2ec7cea-rebase.hg (glob) 65 saved backup bundle to $TESTTMP/a2/.hg/strip-backup/e7b3f00ed42e-a2ec7cea-rebase.hg (glob)
66 66
67 $ hg tglog 67 $ hg tglog
68 o 4: 'E' 68 o 4: ee79e0744528 'E'
69 | 69 |
70 o 3: 'D' 70 o 3: 10530e1d72d9 'D'
71 | 71 |
72 | o 2: 'C' 72 | o 2: dc0947a82db8 'C'
73 | | 73 | |
74 o | 1: 'B' 74 o | 1: 112478962961 'B'
75 |/ 75 |/
76 o 0: 'A' 76 o 0: 426bada5c675 'A'
77 77
78 $ hg manifest --rev tip 78 $ hg manifest --rev tip
79 A 79 A
80 B 80 B
81 D 81 D
100 rebasing 2:dc0947a82db8 "C" (C) 100 rebasing 2:dc0947a82db8 "C" (C)
101 rebasing 3:e7b3f00ed42e "D" (D tip) 101 rebasing 3:e7b3f00ed42e "D" (D tip)
102 saved backup bundle to $TESTTMP/a3/.hg/strip-backup/dc0947a82db8-b8481714-rebase.hg (glob) 102 saved backup bundle to $TESTTMP/a3/.hg/strip-backup/dc0947a82db8-b8481714-rebase.hg (glob)
103 103
104 $ hg tglog 104 $ hg tglog
105 o 3: 'D' 105 o 3: 7375f3dbfb0f 'D'
106 | 106 |
107 o 2: 'C' 107 o 2: bbfdd6cb49aa 'C'
108 | 108 |
109 o 1: 'B' 109 o 1: 112478962961 'B'
110 | 110 |
111 o 0: 'A' 111 o 0: 426bada5c675 'A'
112 112
113 $ hg manifest --rev tip 113 $ hg manifest --rev tip
114 A 114 A
115 B 115 B
116 C 116 C
177 rebasing 3:e7b3f00ed42e "D" (D) 177 rebasing 3:e7b3f00ed42e "D" (D)
178 rebasing 4:69a34c08022a "E" (E tip) 178 rebasing 4:69a34c08022a "E" (E tip)
179 saved backup bundle to $TESTTMP/a5/.hg/strip-backup/dc0947a82db8-3eefec98-rebase.hg (glob) 179 saved backup bundle to $TESTTMP/a5/.hg/strip-backup/dc0947a82db8-3eefec98-rebase.hg (glob)
180 180
181 $ hg tglog 181 $ hg tglog
182 o 4: 'E' 182 o 4: e3d0c70d606d 'E'
183 | 183 |
184 o 3: 'D' 184 o 3: e9153d36a1af 'D'
185 | 185 |
186 o 2: 'C' 186 o 2: a7ac28b870a8 'C'
187 | 187 |
188 o 1: 'B' 188 o 1: fc2b737bb2e5 'B'
189 189
190 o 0: 'A' 190 o 0: 426bada5c675 'A'
191 191
192 $ hg rebase -d 1 -s 3 192 $ hg rebase -d 1 -s 3
193 rebasing 3:e9153d36a1af "D" 193 rebasing 3:e9153d36a1af "D"
194 rebasing 4:e3d0c70d606d "E" (tip) 194 rebasing 4:e3d0c70d606d "E" (tip)
195 saved backup bundle to $TESTTMP/a5/.hg/strip-backup/e9153d36a1af-db7388ed-rebase.hg (glob) 195 saved backup bundle to $TESTTMP/a5/.hg/strip-backup/e9153d36a1af-db7388ed-rebase.hg (glob)
196 $ hg tglog 196 $ hg tglog
197 o 4: 'E' 197 o 4: 2c24e540eccd 'E'
198 | 198 |
199 o 3: 'D' 199 o 3: 73f786ed52ff 'D'
200 | 200 |
201 | o 2: 'C' 201 | o 2: a7ac28b870a8 'C'
202 |/ 202 |/
203 o 1: 'B' 203 o 1: fc2b737bb2e5 'B'
204 204
205 o 0: 'A' 205 o 0: 426bada5c675 'A'
206 206
207 $ cd .. 207 $ cd ..
208 208
209 Verify that target is not selected as external rev (issue3085) 209 Verify that target is not selected as external rev (issue3085)
210 210
229 (branch merge, don't forget to commit) 229 (branch merge, don't forget to commit)
230 $ hg ci -m "Merge" 230 $ hg ci -m "Merge"
231 $ echo "J" >> F 231 $ echo "J" >> F
232 $ hg ci -m "J" 232 $ hg ci -m "J"
233 $ hg tglog 233 $ hg tglog
234 @ 7: 'J' 234 @ 7: c6aaf0d259c0 'J'
235 | 235 |
236 o 6: 'Merge' 236 o 6: 0cfbc7e8faaf 'Merge'
237 |\ 237 |\
238 | o 5: 'I' 238 | o 5: b92d164ad3cb 'I'
239 | | 239 | |
240 o | 4: 'H' 240 o | 4: 4ea5b230dea3 'H'
241 | | 241 | |
242 | o 3: 'G' 242 | o 3: c6001eacfde5 'G'
243 |/| 243 |/|
244 o | 2: 'F' 244 o | 2: 8908a377a434 'F'
245 | | 245 | |
246 | o 1: 'E' 246 | o 1: 7fb047a69f22 'E'
247 |/ 247 |/
248 o 0: 'A' 248 o 0: 426bada5c675 'A'
249 249
250 $ hg rebase -s I -d H --collapse --config ui.merge=internal:other 250 $ hg rebase -s I -d H --collapse --config ui.merge=internal:other
251 rebasing 5:b92d164ad3cb "I" (I) 251 rebasing 5:b92d164ad3cb "I" (I)
252 rebasing 6:0cfbc7e8faaf "Merge" 252 rebasing 6:0cfbc7e8faaf "Merge"
253 rebasing 7:c6aaf0d259c0 "J" (tip) 253 rebasing 7:c6aaf0d259c0 "J" (tip)
254 saved backup bundle to $TESTTMP/a6/.hg/strip-backup/b92d164ad3cb-88fd7ab7-rebase.hg (glob) 254 saved backup bundle to $TESTTMP/a6/.hg/strip-backup/b92d164ad3cb-88fd7ab7-rebase.hg (glob)
255 255
256 $ hg tglog 256 $ hg tglog
257 @ 5: 'Collapsed revision 257 @ 5: 65079693dac4 'Collapsed revision
258 | * I 258 | * I
259 | * Merge 259 | * Merge
260 | * J' 260 | * J'
261 o 4: 'H' 261 o 4: 4ea5b230dea3 'H'
262 | 262 |
263 | o 3: 'G' 263 | o 3: c6001eacfde5 'G'
264 |/| 264 |/|
265 o | 2: 'F' 265 o | 2: 8908a377a434 'F'
266 | | 266 | |
267 | o 1: 'E' 267 | o 1: 7fb047a69f22 'E'
268 |/ 268 |/
269 o 0: 'A' 269 o 0: 426bada5c675 'A'
270 270
271 271
272 $ hg log --rev tip 272 $ hg log --rev tip
273 changeset: 5:65079693dac4 273 changeset: 5:65079693dac4
274 tag: tip 274 tag: tip