[PATCH 2 of 5] show: standardize format of available views text
Ryan McElroy
rm at fb.com
Mon Apr 10 09:41:04 UTC 2017
# HG changeset patch
# User Ryan McElroy <rmcelroy at fb.com>
# Date 1491585973 25200
# Fri Apr 07 10:26:13 2017 -0700
# Node ID 9397e5834ce19a95fbc6a6bb1cf099ec3c00f8f3
# Parent 0f0217e8fb4dd63b15bb7b0294056d1c63ed0561
show: standardize format of available views text
diff --git a/hgext/show.py b/hgext/show.py
--- a/hgext/show.py
+++ b/hgext/show.py
@@ -68,7 +68,7 @@ def show(ui, repo, view=None, template=N
Consumers wanting stable command output should specify a template via
``-T/--template``.
- List of available views:
+ Available views:
"""
if ui.plain() and not template:
@@ -81,7 +81,7 @@ def show(ui, repo, view=None, template=N
ui.pager('show')
# TODO consider using formatter here so available views can be
# rendered to custom format.
- ui.write(_('available views:\n'))
+ ui.write(_('Available views:\n'))
ui.write('\n')
for name, func in sorted(views.items()):
diff --git a/tests/test-show.t b/tests/test-show.t
--- a/tests/test-show.t
+++ b/tests/test-show.t
@@ -8,7 +8,7 @@ No arguments shows available views
$ hg init empty
$ cd empty
$ hg show
- available views:
+ Available views:
bookmarks -- bookmarks and their associated changeset
@@ -35,7 +35,7 @@ No arguments shows available views
Consumers wanting stable command output should specify a template via
"-T/--template".
- List of available views:
+ Available views:
bookmarks bookmarks and their associated changeset
More information about the Mercurial-devel
mailing list