sapling/eden/scm/tests/test-rebase-hidden.t
Zhaolong Zhu ed1a55cf28 rebase: fix a bug of rebasing hidden commits
Summary: Currently, 'hg rebase' is rebasing hidden commits and making them visible to users, this is a regression caused by D42087621 (96b767efde).

Reviewed By: quark-zju

Differential Revision: D42608733

fbshipit-source-id: de4b7b231d42a45844174e4a417d3c07a6869b97
2023-01-19 14:25:02 -08:00

36 lines
517 B
Perl

#debugruntest-compatible
#chg-compatible
$ configure modern
$ enable rebase
Simple case:
$ newrepo simple
$ drawdag << 'EOS'
> d
> | c
> | |
> | b
> |/
> a
> EOS
$ hg hide $c
hiding commit a82ac2b38757 "c"
1 changeset hidden
$ hg log -G -T '{desc}'
o d
o b
o a
$ hg goto $b
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg rebase -d $d
rebasing 488e1b7e7341 "b"
$ hg log -G -T '{desc}'
@ b
o d
o a