Mercurial > hg-stable
diff mercurial/cmdutil.py @ 42898:a65c4715fb5d
split: use literal syntax to build a set of one element
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 06 Sep 2019 08:32:48 +0900 |
parents | 3cf091843b4f |
children | 66048f6b5d0d |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Sun Sep 08 13:23:55 2019 +0900 +++ b/mercurial/cmdutil.py Fri Sep 06 08:32:48 2019 +0900 @@ -187,7 +187,7 @@ originalchunks): newlyaddedandmodifiedfiles.add(chunk.header.filename()) alsorestore.update(set(chunk.header.files()) - - set([chunk.header.filename()])) + {chunk.header.filename()}) return newlyaddedandmodifiedfiles, alsorestore def parsealiases(cmd):