tests: delete test-amend-noinhibit.t

Summary: The original purpose of this test was to verify that `hg restack` would work correctly with the `inihibt` extension disabled. `inhibit` has not been relevant at FB for years, so this test has no value.

Reviewed By: quark-zju

Differential Revision: D21555411

fbshipit-source-id: 475ed37439ed71aee08ad1b23ebe1770c3324890
This commit is contained in:
Arun Kulshreshtha 2020-05-13 18:07:02 -07:00 committed by Facebook GitHub Bot
parent a2b856cc99
commit d7455ed900

View File

@ -1,33 +0,0 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import
from testutil.dott import feature, sh, testtmp # noqa: F401
# Set up test environment.
sh % "cat" << r"""
[extensions]
amend=
rebase=
[experimental]
evolution = obsolete
[mutation]
enabled=true
record=false
[visibility]
enabled=true
""" >> "$HGRCPATH"
sh % "hg init repo"
sh % "cd repo"
# Perform restack without inhibit extension.
sh % "hg debugbuilddag -m +3"
sh % "hg update 1" == "1 files updated, 0 files merged, 0 files removed, 0 files unresolved"
sh % "hg amend -m Amended --no-rebase" == r"""
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"""
sh % "hg rebase --restack" == 'rebasing 27d2178f63cc "r2"'