You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/02/26 19:27:47 UTC

git commit: [#5788] Fixed bug in --limit option to RefreshLastCommits

Updated Branches:
  refs/heads/cj/5788 014fe1f70 -> b6de70942


[#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/b6de7094
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/b6de7094
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/b6de7094

Branch: refs/heads/cj/5788
Commit: b6de709425d1d1cbfc253287e073f452d51ee0cf
Parents: 014fe1f
Author: Cory Johns <jo...@geek.net>
Authored: Tue Feb 26 18:27:34 2013 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Tue Feb 26 18:27:34 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/b6de7094/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()