topics: add command summary
authorMatt Mackall <mpm@selenic.com>
Wed, 10 Jun 2015 16:23:56 -0500
changeset 1847 9fa5b8f4e98e
parent 1846 0b5b757ca812
child 1848 9a81657deec2
topics: add command summary
src/topic/__init__.py
tests/test-topic.t
--- 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.