sapling/eden/scm/tests/test-absorb-strip.t
Jun Wu 00ecfbb16c tests: opt-in new test runner for passing tests
Summary:
A lot of tests are passing with the new test runner.

This is done by `./edit-feature-header.py debugruntest` and paste
the `Passed:` section from `hg debugruntest -v test-*.t` output.

Note: some tests fail with this but pass with debugruntest. They
will be investigated as follow-up.

Differential Revision: D34931992

fbshipit-source-id: 99abc3d9800bb1dd3487dbfa15d715c0bd3ba878
2022-08-16 14:59:23 -07:00

57 lines
757 B
Perl

#chg-compatible
#debugruntest-compatible
Do not strip innocent children. See https://bitbucket.org/facebook/hg-experimental/issues/6/hg-absorb-merges-diverged-commits
$ enable absorb
$ hg init repo
$ cd repo
$ hg debugdrawdag << EOF
> E
> |
> D F
> |/
> C
> |
> B
> |
> A
> EOF
$ hg up E -q
$ echo 1 >> B
$ echo 2 >> D
$ hg absorb -a
showing changes for B
@@ -0,1 +0,1 @@
1124789 -B
1124789 +B1
showing changes for D
@@ -0,1 +0,1 @@
f585351 -D
f585351 +D2
2 changesets affected
f585351 D
1124789 B
2 of 2 chunks applied
$ hg log -G -T '{desc}'
@ E
o D
o C
o B
o F
x C
x B
o A