incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [13/24] git commit: [#5788] Fixed bug in --limit option to RefreshLastCommits
Date Fri, 01 Mar 2013 15:58:04 GMT
[#5788] Fixed bug in --limit option to RefreshLastCommits

Signed-off-by: Cory Johns <johnsca@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/cj/5411
Commit: 5f89e92965125a164f344e5213c741961dc77e51
Parents: 69f224f
Author: Cory Johns <johnsca@geek.net>
Authored: Tue Feb 26 18:27:34 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@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()
 


Mime
View raw message