Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 32291: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 |
comparison
equal
deleted
inserted
replaced
32290:2959c3e986e0 | 32291:bd872f64a8ba |
---|---|
1691 last = len(filelog) - 1 | 1691 last = len(filelog) - 1 |
1692 else: | 1692 else: |
1693 last = filelog.rev(node) | 1693 last = filelog.rev(node) |
1694 | 1694 |
1695 # keep track of all ancestors of the file | 1695 # keep track of all ancestors of the file |
1696 ancestors = set([filelog.linkrev(last)]) | 1696 ancestors = {filelog.linkrev(last)} |
1697 | 1697 |
1698 # iterate from latest to oldest revision | 1698 # iterate from latest to oldest revision |
1699 for rev, flparentlinkrevs, copied in filerevgen(filelog, last): | 1699 for rev, flparentlinkrevs, copied in filerevgen(filelog, last): |
1700 if not follow: | 1700 if not follow: |
1701 if rev > maxrev: | 1701 if rev > maxrev: |