hgext3rd/topic/stack.py
changeset 2632 62eb5a2d2112
parent 2627 42abd3bd30ee
child 2668 1d2c66dc4ee3
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 = '@'