mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
84158ce683
The next changeset will make some change to fbamend. I'm introducting a minimalist test to be able to test the change.
31 lines
1.1 KiB
Perl
31 lines
1.1 KiB
Perl
#
|
|
$ extpath=$(dirname $TESTDIR)
|
|
$ cp $extpath/fbamend.py $TESTTMP # use $TESTTMP substitution in message
|
|
$ cat >> $HGRCPATH << EOF
|
|
> [extensions]
|
|
> fbamend=$TESTTMP/fbamend.py
|
|
> EOF
|
|
|
|
$ hg help commit | grep -- --fixup
|
|
--fixup (with --amend) rebase children commits from a
|
|
$ hg help commit | grep -- --rebase
|
|
--rebase (with --amend) rebases children commits after the
|
|
$ hg help amend
|
|
hg amend [OPTION]...
|
|
|
|
amend the current commit with more changes
|
|
|
|
options:
|
|
|
|
-e --edit prompt to edit the commit message
|
|
--rebase rebases children commits after the amend
|
|
--fixup rebase children commits from a previous amend
|
|
-I --include PATTERN [+] include names matching the given patterns
|
|
-X --exclude PATTERN [+] exclude names matching the given patterns
|
|
-m --message TEXT use text as commit message
|
|
-l --logfile FILE read commit message from file
|
|
|
|
[+] marked option can be specified multiple times
|
|
|
|
use "hg -v help amend" to show the global options
|