Patchwork [1,of,4] test-help: add tests showing that sections can't be filtered by dotted name

login
register
mail settings
Submitter Yuya Nishihara
Date Aug. 29, 2018, 1:43 p.m.
Message ID <a43d85dc663259467d20.1535550213@mimosa>
Download mbox | patch
Permalink /patch/34141/
State Accepted
Headers show

Comments

Yuya Nishihara - Aug. 29, 2018, 1:43 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1533440882 -32400
#      Sun Aug 05 12:48:02 2018 +0900
# Node ID a43d85dc663259467d20033cd6961d6d3c20bf4d
# Parent  94a4980695f801b62b0af4fa576230a6170d1c0e
test-help: add tests showing that sections can't be filtered by dotted name
Pulkit Goyal - Aug. 29, 2018, 4:45 p.m.
On Wed, Aug 29, 2018 at 4:43 PM Yuya Nishihara <yuya@tcha.org> wrote:

> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1533440882 -32400
> #      Sun Aug 05 12:48:02 2018 +0900
> # Node ID a43d85dc663259467d20033cd6961d6d3c20bf4d
> # Parent  94a4980695f801b62b0af4fa576230a6170d1c0e
> test-help: add tests showing that sections can't be filtered by dotted name
>

Queued this series, many thanks!

Patch

diff --git a/tests/test-help.t b/tests/test-help.t
--- a/tests/test-help.t
+++ b/tests/test-help.t
@@ -1340,6 +1340,68 @@  Test repeated config section name
       "smtp.host"
           Host name of mail server, e.g. "mail.example.com".
   
+
+Test section name with dot
+
+  $ hg help config.ui.username
+      "auth.username"
+          Optional. Username to authenticate with. If not given, and the remote
+          site requires basic or digest authentication, the user will be
+          prompted for it. Environment variables are expanded in the username
+          letting you do "foo.username = $USER". If the URI includes a username,
+          only "[auth]" entries with a matching username or without a username
+          will be considered.
+  
+      "smtp.username"
+          Optional. User name for authenticating with the SMTP server. (default:
+          None)
+  
+      "ui.username"
+          The committer of a changeset created when running "commit". Typically
+          a person's name and email address, e.g. "Fred Widget
+          <fred@example.com>". Environment variables in the username are
+          expanded.
+  
+          (default: "$EMAIL" or "username@hostname". If the username in hgrc is
+          empty, e.g. if the system admin set "username =" in the system hgrc,
+          it has to be specified manually or in a different hgrc file)
+  
+
+  $ hg help config.annotate.git
+      "diff.git"
+          Use git extended diff format.
+  
+
+  $ hg help config.update.check
+      "merge-tools.check"
+        A list of merge success-checking options:
+  
+        "changed"
+          Ask whether merge was successful when the merged file shows no
+          changes.
+  
+        "conflicts"
+          Check whether there are conflicts even though the tool reported
+          success.
+  
+        "prompt"
+          Always prompt for merge success, regardless of success reported by
+          tool.
+  
+
+  $ hg help config.commands.update.check
+      "commands.update.check"
+          Determines what level of checking 'hg update' will perform before
+          moving to a destination revision. Valid values are "abort", "none",
+          "linear", and "noconflict". "abort" always fails if the working
+          directory has uncommitted changes. "none" performs no checking, and
+          may result in a merge with uncommitted changes. "linear" allows any
+          update as long as it follows a straight line in the revision history,
+          and may trigger a merge with uncommitted changes. "noconflict" will
+          allow any update which would not trigger a merge with uncommitted
+          changes, if any are present. (default: "linear")
+  
+
 Unrelated trailing paragraphs shouldn't be included
 
   $ hg help config.extramsg | grep '^$'