Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.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 | 770bbfdc9644 |
children | 3546a771e376 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Sat May 06 04:51:25 2017 +0530 +++ b/mercurial/cmdutil.py Fri Feb 10 16:56:29 2017 -0800 @@ -1693,7 +1693,7 @@ last = filelog.rev(node) # keep track of all ancestors of the file - ancestors = set([filelog.linkrev(last)]) + ancestors = {filelog.linkrev(last)} # iterate from latest to oldest revision for rev, flparentlinkrevs, copied in filerevgen(filelog, last):