mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
ed1a55cf28
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
36 lines
517 B
Perl
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
|