hgext3rd/topic/__init__.py
changeset 1907 95874e8fc5f2
parent 1904 f52c02bf47b7
child 1908 dbd6d51e63f1
--- a/hgext3rd/topic/__init__.py	Mon Mar 14 18:43:23 2016 +0000
+++ b/hgext3rd/topic/__init__.py	Mon Mar 14 19:03:32 2016 +0000
@@ -54,7 +54,6 @@
 
 topicrev = re.compile(r'^t\d+$')
 
-
 def _namemap(repo, name):
     if topicrev.match(name):
         idx = int(name[1:])
@@ -189,13 +188,13 @@
     ('', 'clear', False, 'clear active topic if any'),
     ('', 'change', '', 'revset of existing revisions to change topic'),
     ('l', 'list', False, 'show the stack of changeset in the topic'),
-])
-def topics(ui, repo, topic='', clear=False, change=None, list=False):
+    ] + commands.formatteropts)
+def topics(ui, repo, topic='', clear=False, change=None, list=False, **opts):
     """View current topic, set current topic, or see all topics."""
     if list:
         if clear or change:
             raise error.Abort(_("cannot use --clear or --change with --list"))
-        return stack.showstack(ui, repo, topic)
+        return stack.showstack(ui, repo, topic, opts)
 
     if change:
         if not obsolete.isenabled(repo, obsolete.createmarkersopt):