changeset 4914:fcefc052a3b1 stable

topic: add more options to command synopsis string
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 01 Nov 2019 17:52:43 +0700
parents cac7e750422f
children 5113b38cb677
files hgext3rd/topic/__init__.py tests/test-topic.t
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.