sapling/tests/test-fb-hgext-fbamend-noinhibit.t
Jun Wu 238cda6c14 amend: use hint framework for restack
Summary: This allows people to silence the hint.

Reviewed By: markbt

Differential Revision: D7392127

fbshipit-source-id: ac16f952a178d567ce13e22946127456972ebe85
2018-04-13 21:51:49 -07:00

20 lines
603 B
Perl

Set up test environment.
$ cat >> $HGRCPATH << EOF
> [extensions]
> fbamend=
> rebase=
> [experimental]
> evolution = createmarkers
> EOF
$ hg init repo && cd repo
Perform restack without inhibit extension.
$ hg debugbuilddag -m +3
$ hg update 1
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg amend -m "Amended" --no-rebase
hint[amend-restack]: descendants of c05912b45f80 are left behind - use 'hg restack' to rebase them
hint[hint-ack]: use 'hg hint --ack amend-restack' to silence these hints
$ hg rebase --restack
rebasing 2:* "r2" (glob)