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 61BA058973 for ; Fri, 29 Jan 2016 05:34:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 87E18E080E; Fri, 29 Jan 2016 05:34:45 +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 2E1A6E080E for ; Fri, 29 Jan 2016 05:34:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E6FD8340BE0 for ; Fri, 29 Jan 2016 05:34:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 493578EC for ; Fri, 29 Jan 2016 05:34:42 +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: <1454045590.ac6eab129ec0aea4d5cd27d3a3606ad9df774af6.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: ac6eab129ec0aea4d5cd27d3a3606ad9df774af6 X-VCS-Branch: master Date: Fri, 29 Jan 2016 05:34:42 +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: 959ddaad-2662-40e0-b8fc-52ec0c480979 X-Archives-Hash: fd47ee13ace6c76ff26ffabd569beec3 commit: ac6eab129ec0aea4d5cd27d3a3606ad9df774af6 Author: Brian Dolbec gentoo org> AuthorDate: Wed Jan 27 20:32:47 2016 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Fri Jan 29 05:33:10 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=ac6eab12 repoman: Re-add an if that bypasses the changes 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,