changeset 1847:9fa5b8f4e98e

topics: add command summary
author Matt Mackall <mpm@selenic.com>
date Wed, 10 Jun 2015 16:23:56 -0500
parents 0b5b757ca812
children 9a81657deec2
files src/topic/__init__.py tests/test-topic.t
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/topic/__init__.py	Wed Jun 10 16:20:05 2015 -0500
+++ b/src/topic/__init__.py	Wed Jun 10 16:23:56 2015 -0500
@@ -64,7 +64,7 @@
             'topics', 'topic', namemap=_namemap, nodemap=_nodemap))
     repo.__class__ = topicrepo
 
-@command('topics', [
+@command('topics [TOPIC]', [
     ('', 'clear', False, 'clear active topic if any'),
     ('', 'change', '', 'revset of existing revisions to change topic'),
 ])
--- a/tests/test-topic.t	Wed Jun 10 16:20:05 2015 -0500
+++ b/tests/test-topic.t	Wed Jun 10 16:23:56 2015 -0500
@@ -8,7 +8,7 @@
   > EOF
 
   $ hg help topics
-  hg topics
+  hg topics [TOPIC]
   
   View current topic, set current topic, or see all topics.