From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2CEE958973 for ; Wed, 27 Jan 2016 20:39:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 83746E089B; Wed, 27 Jan 2016 20:39:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 329E7E089B for ; Wed, 27 Jan 2016 20:39:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E314E340948 for ; Wed, 27 Jan 2016 20:39:53 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 72CF4CF3 for ; Wed, 27 Jan 2016 20:39:51 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1453926879.1e8f007ab878509cf54a339dd4d9b7037a85593e.dolsen@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: pym/repoman/scanner.py X-VCS-Directories: pym/repoman/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 1e8f007ab878509cf54a339dd4d9b7037a85593e X-VCS-Branch: master Date: Wed, 27 Jan 2016 20:39:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 582b1f84-2681-43dd-b003-464203672aef X-Archives-Hash: 4feadff5a6ec6dfb1cfb57cbacef1d1e commit: 1e8f007ab878509cf54a339dd4d9b7037a85593e Author: Brian Dolbec gentoo org> AuthorDate: Wed Jan 27 20:32:47 2016 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Wed Jan 27 20:34:39 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=1e8f007a repoman: Re-add an if that bypasses the chnanges scan (bug 540882) This if is neded to prevent unnecessary VCS operations which is a big slowdown for large repositories. X-Gentoo-Bug: 540882 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=540882 pym/repoman/scanner.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/repoman/scanner.py b/pym/repoman/scanner.py index d1c10d7..04d8b29 100644 --- a/pym/repoman/scanner.py +++ b/pym/repoman/scanner.py @@ -171,7 +171,10 @@ class Scanner(object): print(green("\nRepoMan scours the neighborhood...")) self.changed = Changes(self.options) - self.changed.scan(self.vcs_settings) + # bypass unneeded VCS operations if not needed + if (self.options.if_modified != "y" and + self.options.mode in ("manifest", "manifest-check")): + self.changed.scan(self.vcs_settings) self.have = { 'pmasked': False,