incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [30/50] [abbrv] git commit: [#4213] Don't stop export after first 100 tickets
Date Thu, 11 Jul 2013 21:58:50 GMT
[#4213] Don't stop export after first 100 tickets

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/584a7285
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/584a7285
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/584a7285

Branch: refs/heads/db/6277
Commit: 584a728545c233ce5e36b3a59f20bdb77adacce7
Parents: 98cec90
Author: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Authored: Mon Jul 8 16:49:33 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Mon Jul 8 16:49:33 2013 +0000

----------------------------------------------------------------------
 scripts/trac_export.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/584a7285/scripts/trac_export.py
----------------------------------------------------------------------
diff --git a/scripts/trac_export.py b/scripts/trac_export.py
index 4fcb27a..002a1e8 100755
--- a/scripts/trac_export.py
+++ b/scripts/trac_export.py
@@ -237,6 +237,10 @@ class TracExport(object):
 
     def next(self):
         while True:
+            # queue empty, try to fetch more
+            if len(self.ticket_queue) == 0:
+                self.ticket_queue = self.next_ticket_ids()
+            # there aren't any more, we're really done
             if len(self.ticket_queue) == 0:
                 raise StopIteration
             id, extra = self.ticket_queue.pop(0)


Mime
View raw message