Mercurial > hg
changeset 42892: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 | 5ccc08d02280 |
children | 34a46d48d24e |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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):