Mercurial > public > mercurial-scm > hg-stable
comparison hgext/fastannotate/commands.py @ 42057:566daffc607d
cleanup: use set literals where possible
Differential Revision: https://phab.mercurial-scm.org/D6192
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 03 Apr 2019 11:21:27 -0700 |
parents | 901f6ef670ca |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
42056:4950ae4d034f | 42057:566daffc607d |
---|---|
196 result, lines = result | 196 result, lines = result |
197 | 197 |
198 formatter.write(result, lines, existinglines=existinglines) | 198 formatter.write(result, lines, existinglines=existinglines) |
199 formatter.end() | 199 formatter.end() |
200 | 200 |
201 _newopts = set([]) | 201 _newopts = set() |
202 _knownopts = set([opt[1].replace('-', '_') for opt in | 202 _knownopts = {opt[1].replace('-', '_') for opt in |
203 (fastannotatecommandargs[r'options'] + commands.globalopts)]) | 203 (fastannotatecommandargs[r'options'] + commands.globalopts)} |
204 | 204 |
205 def _annotatewrapper(orig, ui, repo, *pats, **opts): | 205 def _annotatewrapper(orig, ui, repo, *pats, **opts): |
206 """used by wrapdefault""" | 206 """used by wrapdefault""" |
207 # we need this hack until the obsstore has 0.0 seconds perf impact | 207 # we need this hack until the obsstore has 0.0 seconds perf impact |
208 if ui.configbool('fastannotate', 'unfilteredrepo'): | 208 if ui.configbool('fastannotate', 'unfilteredrepo'): |