Mercurial > evolve
comparison hgext3rd/topic/stack.py @ 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 | d9c7fced94fc |
comparison
equal
deleted
inserted
replaced
1956:d8f1e432b16a | 1957:ea5553e47027 |
---|---|
33 prev = r | 33 prev = r |
34 | 34 |
35 # super crude initial version | 35 # super crude initial version |
36 for idx, ctx in entries[::-1]: | 36 for idx, ctx in entries[::-1]: |
37 if idx is None: | 37 if idx is None: |
38 symbol = '_' | 38 symbol = '^' |
39 state = 'base' | 39 state = 'base' |
40 elif repo.revs('%d and parents()', ctx.rev()): | 40 elif repo.revs('%d and parents()', ctx.rev()): |
41 symbol = '@' | 41 symbol = '@' |
42 state = 'current' | 42 state = 'current' |
43 elif repo.revs('%d and unstable()', ctx.rev()): | 43 elif repo.revs('%d and unstable()', ctx.rev()): |