split: use literal syntax to build a set of one element
authorYuya Nishihara <yuya@tcha.org>
Fri, 06 Sep 2019 08:32:48 +0900
changeset 42898 a65c4715fb5d
parent 42897 5ccc08d02280
child 42899 34a46d48d24e
split: use literal syntax to build a set of one element
mercurial/cmdutil.py
--- 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):