show: avoid extra list operations
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 03 Jul 2017 21:12:04 -0700
changeset 33209 9718725dc02a
parent 33208 9e7efe421395
child 33210 b93df142485e
show: avoid extra list operations
hgext/show.py
--- 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.