Mercurial > evolve
changeset 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 | bdc53285781f |
children | 59e85fbb31b6 |
files | hgext3rd/topic/stack.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/topic/stack.py Mon Jun 19 18:46:30 2017 +0200 +++ b/hgext3rd/topic/stack.py Mon Jun 19 10:33:36 2017 +0200 @@ -78,7 +78,7 @@ # "base" is kind of a "ghost" entry # skip other label for them (no current, no unstable) states = ['base'] - elif repo.revs('%d and unstable()', ctx.rev()): + elif ctx.unstable(): # current revision can be unstable also, so in that case show both # the states and the symbol '@' (issue5553) if iscurrentrevision: