hgext3rd/topic/__init__.py
changeset 4232 424b498aac00
parent 4219 a4d5dcc836ab
parent 4231 3eb78bdcdd7c
child 4236 259d57b906a4
--- a/hgext3rd/topic/__init__.py	Fri Oct 26 12:54:40 2018 +0530
+++ b/hgext3rd/topic/__init__.py	Sat Nov 10 00:55:34 2018 +0100
@@ -652,9 +652,8 @@
                         " '_' and '.' characters")
             raise error.Abort(_("invalid topic name: '%s'") % topic, hint=helptxt)
 
-    ui.pager('topics')
-
     if list:
+        ui.pager('topics')
         if clear or rev:
             raise error.Abort(_("cannot use --clear or --rev with --list"))
         if not topic:
@@ -700,6 +699,7 @@
             ui.status(_('marked working directory as topic: %s\n') % topic)
         return _changecurrenttopic(repo, topic)
 
+    ui.pager('topics')
     # `hg topic --current`
     ret = 0
     if current and not ct: