[PATCH evolve-ext] tests: adjust tests to respect cmd flag negation from core
Kostia Balytskyi
ikostia at fb.com
Tue Oct 4 10:05:03 UTC 2016
# HG changeset patch
# User Kostia Balytskyi <ikostia at fb.com>
# Date 1475575213 25200
# Tue Oct 04 03:00:13 2016 -0700
# Branch stable
# Node ID 322d537de6654e211c2f10e5c55d974fdc0c90b2
# Parent 8f902ec9ed9a296d92c2c2df1536af8c44b5321c
tests: adjust tests to respect cmd flag negation from core
diff --git a/tests/test-amend.t b/tests/test-amend.t
--- a/tests/test-amend.t
+++ b/tests/test-amend.t
@@ -142,20 +142,20 @@ Check the help
options ([+] can be repeated):
- -A --addremove mark new/missing files as added/removed before
+ -A --[no-]addremove mark new/missing files as added/removed before
committing
- -e --edit invoke editor on commit messages
- --close-branch mark a branch as closed, hiding it from the branch
+ -e --[no-]edit invoke editor on commit messages
+ --[no-]close-branch mark a branch as closed, hiding it from the branch
list
- -s --secret use the secret phase for committing
+ -s --[no-]secret use the secret phase for committing
-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
-d --date DATE record the specified date as commit date
-u --user USER record the specified user as committer
- -D --current-date record the current date as commit date
- -U --current-user record the current user as committer
- -i --interactive use interactive mode
+ -D --[no-]current-date record the current date as commit date
+ -U --[no-]current-user record the current user as committer
+ -i --[no-]interactive use interactive mode
(some details hidden, use --verbose to show complete help)
diff --git a/tests/test-tutorial.t b/tests/test-tutorial.t
--- a/tests/test-tutorial.t
+++ b/tests/test-tutorial.t
@@ -457,7 +457,7 @@ of the `uncommit` command to splitting a
options ([+] can be repeated):
- -a --all uncommit all changes when no arguments given
+ -a --[no-]all uncommit all changes when no arguments given
-r --rev VALUE revert commit content to REV instead
-I --include PATTERN [+] include names matching the given patterns
-X --exclude PATTERN [+] exclude names matching the given patterns
@@ -490,7 +490,7 @@ The tutorial part is not written yet but
options ([+] can be repeated):
-r --rev VALUE [+] revision to fold
- --exact only fold specified revisions
+ --[no-]exact only fold specified revisions
-m --message TEXT use text as commit message
-l --logfile FILE read commit message from file
-d --date DATE record the specified date as commit date
More information about the Mercurial-devel
mailing list