Mercurial > hg-stable
diff contrib/synthrepo.py @ 32331:bd872f64a8ba
cleanup: use set literals
We no longer support Python 2.6, so we can now use set literals.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 10 Feb 2017 16:56:29 -0800 |
parents | d5883fd055c6 |
children | 46ba2cdda476 |
line wrap: on
line diff
--- a/contrib/synthrepo.py Sat May 06 04:51:25 2017 +0530 +++ b/contrib/synthrepo.py Fri Feb 10 16:56:29 2017 -0800 @@ -71,7 +71,7 @@ cmdtable = {} command = cmdutil.command(cmdtable) -newfile = set(('new fi', 'rename', 'copy f', 'copy t')) +newfile = {'new fi', 'rename', 'copy f', 'copy t'} def zerodict(): return collections.defaultdict(lambda: 0) @@ -336,7 +336,7 @@ wlock = repo.wlock() lock = repo.lock() - nevertouch = set(('.hgsub', '.hgignore', '.hgtags')) + nevertouch = {'.hgsub', '.hgignore', '.hgtags'} progress = ui.progress _synthesizing = _('synthesizing')