Mercurial > evolve
changeset 5882:1d8148795dc2 stable
next: drop safety net around getting --no-topic flag value
It has a default value and every other piece of code that accesses opts doesn't
bother with .get().
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 21 Apr 2021 20:05:56 +0800 |
parents | 9a06d69d2ac7 |
children | 24bfb5c7bf7a |
files | hgext3rd/evolve/__init__.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/__init__.py Wed Apr 21 19:51:00 2021 +0800 +++ b/hgext3rd/evolve/__init__.py Wed Apr 21 20:05:56 2021 +0800 @@ -845,7 +845,7 @@ topic = _getcurrenttopic(repo) filtered = set() template = shorttemplate - if topic and not opts.get("no_topic", False): + if topic and not opts['no_topic']: filtered = set(ctx.rev() for ctx in children if ctx.topic() != topic) children = [ctx for ctx in children if ctx.rev() not in filtered] template = utility.stacktemplate