sapling/eden/scm/tests/test-fb-ext-debugcommitmessage.t
Muir Manders 1dcb7966fc tests: turn on eagerepo for a bunch of tests
Summary: These are the tests that passed after adding "$ eagerepo". I attempted to turn on eagerepo for all tests that didn't contain "$ eagerepo" or "configure modern".

Reviewed By: quark-zju

Differential Revision: D44445379

fbshipit-source-id: b283be6d5249f74e11a3205622961e457587e93b
2023-04-04 08:42:03 -07:00

46 lines
1.2 KiB
Perl

#debugruntest-compatible
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
# Set up extension
$ eagerepo
$ cat >> $HGRCPATH << 'EOF'
> [extensions]
> debugcommitmessage=
> EOF
# Set up repo
$ hg init repo
$ cd repo
# Test extension
$ hg debugcommitmessage
HG: Enter commit message. Lines beginning with 'HG:' are removed.
HG: Leave message empty to abort commit.
HG: --
HG: user: test
HG: branch 'default'
HG: no files changed
$ hg debugcommitmessage --config 'committemplate.changeset.commit.normal.normal=Test Specific Message\n'
Test Specific Message
$ hg debugcommitmessage --config 'committemplate.changeset.commit=Test Generic Message\n'
Test Generic Message
$ hg debugcommitmessage commit.amend.normal --config 'committemplate.changeset.commit=Test Generic Message\n'
Test Generic Message
$ hg debugcommitmessage randomform --config 'committemplate.changeset.commit=Test Generic Message\n'
HG: Enter commit message. Lines beginning with 'HG:' are removed.
HG: Leave message empty to abort commit.
HG: --
HG: user: test
HG: branch 'default'
HG: no files changed