* [gentoo-commits] proj/portage:master commit in: pym/repoman/
@ 2016-01-29 23:04 99% Brian Dolbec
0 siblings, 0 replies; 1+ results
From: Brian Dolbec @ 2016-01-29 23:04 UTC (permalink / raw
To: gentoo-commits
commit: af88402104c90e99ab40bff956f58395ea362a6e
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 20:32:47 2016 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> 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,
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-01-29 23:04 99% [gentoo-commits] proj/portage:master commit in: pym/repoman/ Brian Dolbec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox