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 703D958974 for ; Fri, 29 Jan 2016 23:04:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AA0221C020; Fri, 29 Jan 2016 23:04:53 +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 D8F6A21C017 for ; Fri, 29 Jan 2016 23:04:52 +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 D74D3340C5E for ; Fri, 29 Jan 2016 23:04:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2EE0C8DA for ; Fri, 29 Jan 2016 23:04:49 +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: <1454108576.af88402104c90e99ab40bff956f58395ea362a6e.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: af88402104c90e99ab40bff956f58395ea362a6e X-VCS-Branch: master Date: Fri, 29 Jan 2016 23:04:49 +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: 40634550-43fa-494f-8eae-b927ec95f071 X-Archives-Hash: afffc4b403adf682fce004b15888d2e1 commit: af88402104c90e99ab40bff956f58395ea362a6e Author: Brian Dolbec gentoo org> AuthorDate: Wed Jan 27 20:32:47 2016 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Fri Jan 29 23:02:56 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=af884021 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,