mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
c80cdf1f49
Summary: The remaining test failures are mostly around bundle support, which I'll fix in a later diff. Reviewed By: quark-zju Differential Revision: D23664037 fbshipit-source-id: 2bdde3cb4fcded6e0cf3afdc23269662544821df
56 lines
703 B
Perl
56 lines
703 B
Perl
#chg-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
|
|
|