diff hgext3rd/topic/__init__.py @ 3372:4138771105bb

topics: list only topic names in quiet mode This will be helpful in bash completion.
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 28 Dec 2017 04:09:02 +0530
parents 753e5ebabe7d
children 2b06f144b6e0
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py	Wed Dec 27 23:51:18 2017 +0530
+++ b/hgext3rd/topic/__init__.py	Thu Dec 28 04:09:02 2017 +0530
@@ -903,6 +903,9 @@
         fm.write('topic', namemask, topic, label=label)
         fm.data(active=active)
 
+        if ui.quiet:
+            fm.plain('\n')
+            continue
         data = stack.stack(repo, topic=topic)
         fm.plain(' (')
         if ui.verbose: