comparison tests/test-evolve-orphan-merge.t @ 6316:b1d1f4ade142

evolve: don't embed graft data when completing interrupted evolve operations This data shows in TortoiseHg, and is a bit awkward since it wasn't added before in the non interrupted case. It originated before 823031b51d81, when the implementation changed away from using the graft command. According to @marmoute, unconditionally adding `source` served as noise to create a new hash and prevent a cycle, so use the same key (`rebase_source`) as would happen in the uninterrupted case (as demonstrated by the first change in test-stabilize-conflict.t).
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 07 Oct 2022 18:14:58 -0400
parents 1cbafebe874b
children 1328195f76a9
comparison
equal deleted inserted replaced
6314:3bad2060db25 6316:b1d1f4ade142
215 $ hg resolve -m 215 $ hg resolve -m
216 (no more unresolved files) 216 (no more unresolved files)
217 continue: hg evolve --continue 217 continue: hg evolve --continue
218 $ hg evolve --continue 218 $ hg evolve --continue
219 evolving 10:fd41d25a3e90 "foobar to c" 219 evolving 10:fd41d25a3e90 "foobar to c"
220 working directory is now at c5405d2da7a1 220 working directory is now at 6b3ccba26ce3
221 221
222 $ hg glog 222 $ hg glog
223 @ 12:c5405d2da7a1 foobar to c 223 @ 12:6b3ccba26ce3 foobar to c
224 |\ () draft 224 |\ () draft
225 | o 11:31c317b7bdb1 foo to c 225 | o 11:31c317b7bdb1 foo to c
226 | | () draft 226 | | () draft
227 o | 9:d0f84b25d4e3 bar to c 227 o | 9:d0f84b25d4e3 bar to c
228 |/ () draft 228 |/ () draft
229 o 0:8fa14d15e168 added hgignore 229 o 0:8fa14d15e168 added hgignore
230 () draft 230 () draft
231 231
232 $ hg parents 232 $ hg parents
233 changeset: 12:c5405d2da7a1 233 changeset: 12:6b3ccba26ce3
234 tag: tip 234 tag: tip
235 parent: 9:d0f84b25d4e3 235 parent: 9:d0f84b25d4e3
236 parent: 11:31c317b7bdb1 236 parent: 11:31c317b7bdb1
237 user: test 237 user: test
238 date: Thu Jan 01 00:00:00 1970 +0000 238 date: Thu Jan 01 00:00:00 1970 +0000
247 1 new orphan changesets 247 1 new orphan changesets
248 248
249 $ hg glog 249 $ hg glog
250 @ 13:928097d0b5b5 foo to c 250 @ 13:928097d0b5b5 foo to c
251 | () draft 251 | () draft
252 | * 12:c5405d2da7a1 foobar to c 252 | * 12:6b3ccba26ce3 foobar to c
253 | |\ () draft orphan 253 | |\ () draft orphan
254 +---x 11:31c317b7bdb1 foo to c 254 +---x 11:31c317b7bdb1 foo to c
255 | | () draft 255 | | () draft
256 | o 9:d0f84b25d4e3 bar to c 256 | o 9:d0f84b25d4e3 bar to c
257 |/ () draft 257 |/ () draft
271 $ hg resolve -m 271 $ hg resolve -m
272 (no more unresolved files) 272 (no more unresolved files)
273 continue: hg evolve --continue 273 continue: hg evolve --continue
274 274
275 $ hg evolve --continue 275 $ hg evolve --continue
276 evolving 12:c5405d2da7a1 "foobar to c" 276 evolving 12:6b3ccba26ce3 "foobar to c"
277 working directory is now at dc1948a6eeab 277 working directory is now at 6feadc8fabd5
278 278
279 $ hg glog 279 $ hg glog
280 @ 14:dc1948a6eeab foobar to c 280 @ 14:6feadc8fabd5 foobar to c
281 |\ () draft 281 |\ () draft
282 | o 13:928097d0b5b5 foo to c 282 | o 13:928097d0b5b5 foo to c
283 | | () draft 283 | | () draft
284 o | 9:d0f84b25d4e3 bar to c 284 o | 9:d0f84b25d4e3 bar to c
285 |/ () draft 285 |/ () draft
287 () draft 287 () draft
288 288
289 3) When stabilizing other changesets resulted in orphan merge changeset 289 3) When stabilizing other changesets resulted in orphan merge changeset
290 ----------------------------------------------------------------------- 290 -----------------------------------------------------------------------
291 291
292 $ hg prune -r d0f84b25d4e3 -r 928097d0b5b5 -r dc1948a6eeab 292 $ hg prune -r d0f84b25d4e3 -r 928097d0b5b5 -r 6feadc8fabd5
293 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 293 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
294 working directory is now at 8fa14d15e168 294 working directory is now at 8fa14d15e168
295 3 changesets pruned 295 3 changesets pruned
296 296
297 $ for ch in l m; do echo foo > $ch; hg ci -Aqm "added "$ch; done; 297 $ for ch in l m; do echo foo > $ch; hg ci -Aqm "added "$ch; done;