[PATCH 1 of 2] keyword: remove "help keyword" from test

Christian Ebert blacktrash at gmx.net
Tue Aug 4 03:52:31 CDT 2009

# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1249375831 -7200
# Node ID 9c50e170ec41e307e297b4cf33228b37d6a8982d
# Parent  1adabc0c05a299b97d61152e419e61d4681e341f
keyword: remove "help keyword" from test

Testing help output does not make sense as we have no way to
check for errors in content which would be the only reasonable
test here.

diff --git a/tests/test-keyword b/tests/test-keyword
--- a/tests/test-keyword
+++ b/tests/test-keyword
@@ -13,9 +13,6 @@
 commit.test=cp a hooktest
-echo % help
-hg help keyword
 echo % hg kwdemo
 hg --quiet kwdemo --default \
 | sed -e 's![^ ][^ ]*demo.txt,v!/TMP/demo.txt,v!' \
diff --git a/tests/test-keyword.out b/tests/test-keyword.out
--- a/tests/test-keyword.out
+++ b/tests/test-keyword.out
@@ -1,64 +1,3 @@
-% help
-keyword extension - expand keywords in tracked files
-This extension expands RCS/CVS-like or self-customized $Keywords$ in tracked
-text files selected by your configuration.
-Keywords are only expanded in local repositories and not stored in the change
-history. The mechanism can be regarded as a convenience for the current user
-or for archive distribution.
-Configuration is done in the [keyword] and [keywordmaps] sections of hgrc
-  [keyword]
-  # expand keywords in every python file except those matching "x*"
-  **.py =
-  x*    = ignore
-NOTE: the more specific you are in your filename patterns the less you lose
-speed in huge repositories.
-For [keywordmaps] template mapping and expansion demonstration and control run
-"hg kwdemo".
-An additional date template filter {date|utcdate} is provided.
-The default template mappings (view with "hg kwdemo -d") can be replaced with
-customized keywords and templates. Again, run "hg kwdemo" to control the
-results of your config changes.
-Before changing/disabling active keywords, run "hg kwshrink" to avoid the risk
-of inadvertently storing expanded keywords in the change history.
-To force expansion after enabling it, or a configuration change, run "hg
-Also, when committing with the record extension or using mq's qrecord, be
-aware that keywords cannot be updated. Again, run "hg kwexpand" on the files
-in question to update keyword expansions after all changes have been checked
-Expansions spanning more than one line and incremental expansions, like CVS'
-$Log$, are not supported. A keyword template map "Log = {desc}" expands to the
-first line of the changeset description.
-list of commands:
- kwdemo     print [keywordmaps] configuration and an expansion example
- kwexpand   expand keywords in the working directory
- kwfiles    show files configured for keyword expansion
- kwshrink   revert expanded keywords in the working directory
-enabled extensions:
- keyword   expand keywords in tracked files
- mq        manage a stack of patches
- notify    hooks for sending email notifications at commit/push time
-use "hg -v help keyword" to show aliases and global options
 % hg kwdemo
 hgext.keyword = 

More information about the Mercurial-devel mailing list