# HG changeset patch # User Anton Shestakov # Date 1619006756 -28800 # Node ID 1d8148795dc2eec77175fbdd26212b81136f35fb # Parent 9a06d69d2ac76f9637c96884579342183571abac 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(). diff -r 9a06d69d2ac7 -r 1d8148795dc2 hgext3rd/evolve/__init__.py --- 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