Mercurial > public > mercurial-scm > hg
comparison hgext/uncommit.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 | f4147ca63d39 |
children | ff1ff2aae132 |
comparison
equal
deleted
inserted
replaced
42056:4950ae4d034f | 42057:566daffc607d |
---|---|
145 | 145 |
146 # Naming a parent directory of an eligible file is OK, even | 146 # Naming a parent directory of an eligible file is OK, even |
147 # if not everything tracked in that directory can be | 147 # if not everything tracked in that directory can be |
148 # uncommitted. | 148 # uncommitted. |
149 if badfiles: | 149 if badfiles: |
150 badfiles -= set([f for f in util.dirs(eligible)]) | 150 badfiles -= {f for f in util.dirs(eligible)} |
151 | 151 |
152 for f in sorted(badfiles): | 152 for f in sorted(badfiles): |
153 if f in s.clean: | 153 if f in s.clean: |
154 hint = _(b"file was not changed in working directory " | 154 hint = _(b"file was not changed in working directory " |
155 b"parent") | 155 b"parent") |