changeset 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
files hgext/show.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/show.py	Mon Jul 03 21:10:48 2017 -0700
+++ b/hgext/show.py	Mon Jul 03 21:12:04 2017 -0700
@@ -219,7 +219,7 @@
             branchpointattip = True
             break
 
-    stackrevs = list(reversed(sorted(stackrevs)))
+    stackrevs = list(sorted(stackrevs, reverse=True))
 
     # Find likely target heads for the current stack. These are likely
     # merge or rebase targets.