Mercurial > evolve
comparison hgext3rd/topic/stack.py @ 2632:62eb5a2d2112
refactoring: directly use 'ctx.unstable()' in showstack function
This is simpler and more efficient.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 19 Jun 2017 10:33:36 +0200 |
parents | 42abd3bd30ee |
children | 1d2c66dc4ee3 |
comparison
equal
deleted
inserted
replaced
2631:bdc53285781f | 2632:62eb5a2d2112 |
---|---|
76 if not isentry: | 76 if not isentry: |
77 symbol = '^' | 77 symbol = '^' |
78 # "base" is kind of a "ghost" entry | 78 # "base" is kind of a "ghost" entry |
79 # skip other label for them (no current, no unstable) | 79 # skip other label for them (no current, no unstable) |
80 states = ['base'] | 80 states = ['base'] |
81 elif repo.revs('%d and unstable()', ctx.rev()): | 81 elif ctx.unstable(): |
82 # current revision can be unstable also, so in that case show both | 82 # current revision can be unstable also, so in that case show both |
83 # the states and the symbol '@' (issue5553) | 83 # the states and the symbol '@' (issue5553) |
84 if iscurrentrevision: | 84 if iscurrentrevision: |
85 states.append('current') | 85 states.append('current') |
86 symbol = '@' | 86 symbol = '@' |