From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QVR2B-0002AP-Ap for garchives@archives.gentoo.org; Sat, 11 Jun 2011 16:27:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F06691C0CF; Sat, 11 Jun 2011 16:27:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id BC14C1C0CF for ; Sat, 11 Jun 2011 16:27:31 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 48CFC1B400F for ; Sat, 11 Jun 2011 16:27:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id AD76E8003C for ; Sat, 11 Jun 2011 16:27:30 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <3e5b65a93e92a4cdb1c5e32c1ae8cf3c605b8391.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/depgraph.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 3e5b65a93e92a4cdb1c5e32c1ae8cf3c605b8391 Date: Sat, 11 Jun 2011 16:27:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: c118d059c5ff98a5b9747f570e610f94 commit: 3e5b65a93e92a4cdb1c5e32c1ae8cf3c605b8391 Author: Zac Medico gentoo org> AuthorDate: Sat Jun 11 16:26:47 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Jun 11 16:26:47 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D3e5b65a9 serialize_tasks: debug output for runtime cycles --- pym/_emerge/depgraph.py | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 37dde2d..41924b4 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -4698,7 +4698,9 @@ class depgraph(object): =20 def _serialize_tasks(self): =20 - if "--debug" in self._frozen_config.myopts: + debug =3D "--debug" in self._frozen_config.myopts + + if debug: writemsg("\ndigraph:\n\n", noiselevel=3D-1) self._dynamic_config.digraph.debug_print() writemsg("\n", noiselevel=3D-1) @@ -5050,6 +5052,15 @@ class depgraph(object): =20 selected_nodes =3D smallest_cycle =20 + if selected_nodes and debug: + writemsg("\nruntime cycle digraph (%s nodes):\n\n" % + (len(selected_nodes),), noiselevel=3D-1) + cycle_digraph =3D mygraph.copy() + cycle_digraph.difference_update([x for x in + cycle_digraph if x not in selected_nodes]) + cycle_digraph.debug_print() + writemsg("\n", noiselevel=3D-1) + if prefer_asap and asap_nodes and not selected_nodes: # We failed to find any asap nodes to merge, so ignore # them for the next iteration.