topic: add more options to command synopsis string stable
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 01 Nov 2019 17:52:43 +0700
branchstable
changeset 4914 fcefc052a3b1
parent 4913 cac7e750422f
child 4915 5113b38cb677
topic: add more options to command synopsis string
hgext3rd/topic/__init__.py
tests/test-topic.t
--- a/hgext3rd/topic/__init__.py	Fri Oct 11 16:53:52 2019 +0200
+++ b/hgext3rd/topic/__init__.py	Fri Nov 01 17:52:43 2019 +0700
@@ -634,7 +634,7 @@
         (b'', b'age', False, b'show when you last touched the topics'),
         (b'', b'current', None, b'display the current topic only'),
     ] + commands.formatteropts,
-    _(b'hg topics [TOPIC]'))
+    _(b'hg topics [OPTION]... [-r REV]... [TOPIC]'))
 def topics(ui, repo, topic=None, **opts):
     """View current topic, set current topic, change topic for a set of revisions, or see all topics.
 
--- a/tests/test-topic.t	Fri Oct 11 16:53:52 2019 +0200
+++ b/tests/test-topic.t	Fri Nov 01 17:52:43 2019 +0700
@@ -128,7 +128,7 @@
   
   (use 'hg help -v topic' to show built-in aliases and global options)
   $ hg help topics
-  hg topics [TOPIC]
+  hg topics [OPTION]... [-r REV]... [TOPIC]
   
   View current topic, set current topic, change topic for a set of revisions, or
   see all topics.