From 0d208d7bace79f104c95b0438eb27885a64906ac Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 14 Feb 2007 22:48:37 +0000 Subject: [PATCH] Optimize merge order calculation for --tree output when necessary. svn path=/main/trunk/; revision=5967 --- bin/emerge | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/emerge b/bin/emerge index f0809ab39..59652958e 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1987,6 +1987,7 @@ class depgraph: ignore_priority_range = [None] ignore_priority_range.extend( xrange(DepPriority.MIN, DepPriority.MEDIUM + 1)) + tree_mode = "--tree" in self.myopts while not mygraph.empty(): ignore_priority = None nodes = None @@ -2009,7 +2010,7 @@ class depgraph: selected_nodes = None if nodes: if ignore_priority <= DepPriority.SOFT: - if ignore_priority is None and not reversed: + if ignore_priority is None and not tree_mode: # Greedily pop all of these nodes since no relationship # has been ignored. This optimization destroys --tree # output, so it's disabled in reversed mode. -- 2.26.2