mirror of
https://github.com/facebook/sapling.git
synced 2025-01-07 14:10:42 +03:00
b27a46c987
Summary: This is a big bulk of generally almost-obvious fixes to the moved tests. Mostly these fixes have to do with correct importing of the actual extensions. Depends on D6675329 Test Plan: - ./run-tests.py fails less after this commit - see further commits for more test fixes Reviewers: #sourcecontrol Differential Revision: https://phabricator.intern.facebook.com/D6675344
36 lines
1.0 KiB
Perl
36 lines
1.0 KiB
Perl
Set up extension
|
|
$ 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
|