[PATCH 2 of 5] show: avoid extra list operations
Gregory Szorc
gregory.szorc at gmail.com
Tue Jul 4 00:32:38 EDT 2017
# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1499141524 25200
# Mon Jul 03 21:12:04 2017 -0700
# Node ID f2c118798d8bd214679f9a6ad3f8f4f87882d9d3
# Parent 0cacc533e884965d93b426c6805a55097010dcbe
show: avoid extra list operations
diff --git a/hgext/show.py b/hgext/show.py
--- a/hgext/show.py
+++ b/hgext/show.py
@@ -219,7 +219,7 @@ def showstack(ui, repo, displayer):
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.
More information about the Mercurial-devel
mailing list