Index: branches/ariel/xmldumps-backup/incrementals/generateincrementals.py |
— | — | @@ -73,10 +73,25 @@ |
74 | 74 | if not dryrun: |
75 | 75 | self.incrDumpsDirs.cleanupOldIncrDumps(self.date) |
76 | 76 | maxRevID = self.getMaxRevIdFromFile() |
| 77 | + if (self.verbose): |
| 78 | + if maxRevID: |
| 79 | + print "maxRevID is ", maxRevID |
| 80 | + else: |
| 81 | + print "no maxRevID found" |
77 | 82 | prevDate = self.incrDumpsDirs.getPrevIncrDate(self.date) |
| 83 | + if (self.verbose): |
| 84 | + if prevDate: |
| 85 | + print "prevDate is", prevDate |
| 86 | + else: |
| 87 | + print "no prevDate found" |
78 | 88 | prevRevID = None |
79 | 89 | if prevDate: |
80 | | - prevRevID = self.getMaxRevIdFromFile(prevDate) |
| 90 | + prevRevID = self.getMaxRevIdFromFile(prevDate) |
| 91 | + if (self.verbose): |
| 92 | + if prevRevID: |
| 93 | + print "prevRevId is ", prevRevID |
| 94 | + else: |
| 95 | + print "no prevRevID found" |
81 | 96 | if not prevRevID: |
82 | 97 | prevRevID = str(int(maxRevID) - 10) |
83 | 98 | if int(prevRevID) < 1: |
— | — | @@ -266,7 +281,7 @@ |
267 | 282 | date = TimeUtils.today() |
268 | 283 | |
269 | 284 | if len(remainder) > 0: |
270 | | - dump = IncrDump(config, date, remainder[0], doStubs, doRevs, dryrun, verbose) |
| 285 | + dump = IncrDump(config, date, remainder[0], doStubs, doRevs, dryrun, verbose, forcerun) |
271 | 286 | dump.doOneWiki() |
272 | 287 | else: |
273 | 288 | dump = IncrDumpLoop(config, date, doStubs, doRevs, dryrun, verbose, forcerun) |