You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/02/28 22:48:56 UTC
[1/7] git commit: [#5788] Fixed bug in --limit option to
RefreshLastCommits
[#5788] Fixed bug in --limit option to RefreshLastCommits
Signed-off-by: Cory Johns <jo...@geek.net>
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/master
Commit: 5f89e92965125a164f344e5213c741961dc77e51
Parents: 69f224f
Author: Cory Johns <jo...@geek.net>
Authored: Tue Feb 26 18:27:34 2013 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
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()