[Collab-qa-commits] r1801 - udd/udd

Stuart Prescott themill-guest at alioth.debian.org
Thu Sep 23 09:55:10 UTC 2010


Author: themill-guest
Date: 2010-09-23 09:55:10 +0000 (Thu, 23 Sep 2010)
New Revision: 1801

Modified:
   udd/udd/upload_history_gatherer.py
Log:
* add config option to allow full history import rather than just last 2 months


Modified: udd/udd/upload_history_gatherer.py
===================================================================
--- udd/udd/upload_history_gatherer.py	2010-09-23 09:53:17 UTC (rev 1800)
+++ udd/udd/upload_history_gatherer.py	2010-09-23 09:55:10 UTC (rev 1801)
@@ -28,6 +28,10 @@
 
   def run(self):
     path = self.my_config['path']
+    if 'only-recent' in self.my_config:
+      onlyrecent = self.my_config['only-recent']
+    else:
+      onlyrecent = True
 
     cursor = self.cursor()
 
@@ -50,7 +54,9 @@
     added = {}
     files = glob(path + '/debian-devel-changes.*')
     files.sort()
-    for name in files[-2:]:
+    if onlyrecent:
+      files = files[-2:]
+    for name in files:
 #    for name in files:
       bname = os.path.basename(name).replace(".gz","").replace(".out","")
 #      print bname




More information about the Collab-qa-commits mailing list