diff hgext3rd/topic/__init__.py @ 2750:bd3824d1b795

stack: show short node of changesets in `hg stack -v` After this patch, hg stack -v shows short nodes for changesets which have topic index, i.e. excluding the bases except t0.
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 14 Jul 2017 07:19:15 +0530
parents ddfe336de779
children 610581a2fb74
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py	Fri Jul 21 01:04:32 2017 +0200
+++ b/hgext3rd/topic/__init__.py	Fri Jul 14 07:19:15 2017 +0530
@@ -101,11 +101,13 @@
               'topic.stack.index': 'yellow',
               'topic.stack.index.base': 'none dim',
               'topic.stack.desc.base': 'none dim',
+              'topic.stack.shortnode.base': 'none dim',
               'topic.stack.state.base': 'dim',
               'topic.stack.state.clean': 'green',
               'topic.stack.index.current': 'cyan',       # random pick
               'topic.stack.state.current': 'cyan bold',  # random pick
               'topic.stack.desc.current': 'cyan',        # random pick
+              'topic.stack.shortnode.current': 'cyan',   # random pick
               'topic.stack.state.unstable': 'red',
               'topic.stack.summary.behindcount': 'cyan',
               'topic.stack.summary.behinderror': 'red',
@@ -366,7 +368,10 @@
 def cmdstack(ui, repo, topic='', **opts):
     """list all changesets in a topic and other information
 
-    List the current topic by default."""
+    List the current topic by default.
+
+    The --verbose version shows short nodes for the commits also.
+    """
     if not topic:
         topic = None
     branch = None