changeset 1957:ea5553e47027

stack: change the ascii symbold for base Now that the children line go upward, '_' is no longer clear as is take the lower part of the line. We go for '^' that use the upper part.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 01 Apr 2016 16:58:52 -0700
parents d8f1e432b16a
children 62d5d4206840
files hgext3rd/topic/stack.py tests/test-topic-stack.t
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/topic/stack.py	Fri Apr 01 16:57:11 2016 -0700
+++ b/hgext3rd/topic/stack.py	Fri Apr 01 16:58:52 2016 -0700
@@ -35,7 +35,7 @@
     # super crude initial version
     for idx, ctx in entries[::-1]:
         if idx is None:
-            symbol = '_'
+            symbol = '^'
             state = 'base'
         elif repo.revs('%d and parents()', ctx.rev()):
             symbol = '@'
--- a/tests/test-topic-stack.t	Fri Apr 01 16:57:11 2016 -0700
+++ b/tests/test-topic-stack.t	Fri Apr 01 16:58:52 2016 -0700
@@ -58,7 +58,7 @@
   t3: c_e
   t2: c_d
   t1: c_c
-    _ c_b
+    ^ c_b
 
 error case, nothing to list
 
@@ -106,7 +106,7 @@
   t3$ c_e (unstable)
   t2@ c_d (current)
   t1: c_c
-    _ c_b
+    ^ c_b
 
 Also test the revset:
 
@@ -172,12 +172,12 @@
   $ hg top -l
   t6: c_f
   t5: c_e
-    _ c_d
+    ^ c_d
   t4@ c_h (current)
   t3: c_g
   t2: c_d
   t1: c_c
-    _ c_b
+    ^ c_b
 
 Case with multiple heads on the topic with unstability involved
 ---------------------------------------------------------------
@@ -214,9 +214,9 @@
   $ hg topic --list
   t6$ c_f (unstable)
   t5$ c_e (unstable)
-    _ c_D
+    ^ c_D
   t4: c_h
   t3: c_g
   t2@ c_D (current)
   t1: c_c
-    _ c_b
+    ^ c_b