Mercurial > hg
comparison mercurial/cmdutil.py @ 32432:75544176bc28
cmdutil: use a generator expression instead of a list comprehension
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 22 May 2017 13:35:22 -0400 |
parents | 9fd9f91b0c43 |
children | 7feaf5550a9e |
comparison
equal
deleted
inserted
replaced
32431:9fd9f91b0c43 | 32432:75544176bc28 |
---|---|
1167 the given template. | 1167 the given template. |
1168 Neither fp nor template specified: All revs written to repo.ui.write() | 1168 Neither fp nor template specified: All revs written to repo.ui.write() |
1169 ''' | 1169 ''' |
1170 | 1170 |
1171 total = len(revs) | 1171 total = len(revs) |
1172 revwidth = max([len(str(rev)) for rev in revs]) | 1172 revwidth = max(len(str(rev)) for rev in revs) |
1173 filemode = {} | 1173 filemode = {} |
1174 | 1174 |
1175 def single(rev, seqno, fp): | 1175 def single(rev, seqno, fp): |
1176 ctx = repo[rev] | 1176 ctx = repo[rev] |
1177 node = ctx.node() | 1177 node = ctx.node() |