Mercurial > hg
comparison hgext/show.py @ 33209:9718725dc02a
show: avoid extra list operations
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 03 Jul 2017 21:12:04 -0700 |
parents | 9e7efe421395 |
children | b93df142485e |
comparison
equal
deleted
inserted
replaced
33208:9e7efe421395 | 33209:9718725dc02a |
---|---|
217 | 217 |
218 if len(ctx.children()) > 1: | 218 if len(ctx.children()) > 1: |
219 branchpointattip = True | 219 branchpointattip = True |
220 break | 220 break |
221 | 221 |
222 stackrevs = list(reversed(sorted(stackrevs))) | 222 stackrevs = list(sorted(stackrevs, reverse=True)) |
223 | 223 |
224 # Find likely target heads for the current stack. These are likely | 224 # Find likely target heads for the current stack. These are likely |
225 # merge or rebase targets. | 225 # merge or rebase targets. |
226 if basectx: | 226 if basectx: |
227 # TODO make this customizable? | 227 # TODO make this customizable? |