Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A558E41E for ; Fri, 1 Mar 2013 20:08:01 +0000 (UTC) Received: (qmail 4202 invoked by uid 500); 1 Mar 2013 20:08:01 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 4140 invoked by uid 500); 1 Mar 2013 20:08:01 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 3845 invoked by uid 99); 1 Mar 2013 20:08:00 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Mar 2013 20:08:00 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id B39323BA6B; Fri, 1 Mar 2013 20:08:00 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: johnsca@apache.org To: allura-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [1/26] git commit: [#5788] Fixed bug in --limit option to RefreshLastCommits Message-Id: <20130301200800.B39323BA6B@tyr.zones.apache.org> Date: Fri, 1 Mar 2013 20:08:00 +0000 (UTC) [#5788] Fixed bug in --limit option to RefreshLastCommits Signed-off-by: Cory Johns Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/5f89e929 Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/5f89e929 Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/5f89e929 Branch: refs/heads/cj/5854 Commit: 5f89e92965125a164f344e5213c741961dc77e51 Parents: 69f224f Author: Cory Johns Authored: Tue Feb 26 18:27:34 2013 +0000 Committer: Tim Van Steenburgh Committed: Thu Feb 28 21:48:32 2013 +0000 ---------------------------------------------------------------------- Allura/allura/scripts/refresh_last_commits.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/5f89e929/Allura/allura/scripts/refresh_last_commits.py ---------------------------------------------------------------------- diff --git a/Allura/allura/scripts/refresh_last_commits.py b/Allura/allura/scripts/refresh_last_commits.py index 882076c..5ed409a 100644 --- a/Allura/allura/scripts/refresh_last_commits.py +++ b/Allura/allura/scripts/refresh_last_commits.py @@ -146,7 +146,7 @@ class RefreshLastCommits(ScriptTask): ThreadLocalORMSession.flush_all() if i % 100 == 0: cls._print_stats(i, timings, 100) - if i >= options.limit: + if options.limit and i >= options.limit: break ThreadLocalORMSession.flush_all()