r104026 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104025‎ | r104026 | r104027 >
Date:12:10, 23 November 2011
Author:ariel
Status:ok
Tags:
Comment:
missing arg for IncrDump() call, add some verbosity generally
Modified paths:
  • /branches/ariel/xmldumps-backup/incrementals/generateincrementals.py (modified) (history)

Diff [purge]

Index: branches/ariel/xmldumps-backup/incrementals/generateincrementals.py
@@ -73,10 +73,25 @@
7474 if not dryrun:
7575 self.incrDumpsDirs.cleanupOldIncrDumps(self.date)
7676 maxRevID = self.getMaxRevIdFromFile()
 77+ if (self.verbose):
 78+ if maxRevID:
 79+ print "maxRevID is ", maxRevID
 80+ else:
 81+ print "no maxRevID found"
7782 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"
7888 prevRevID = None
7989 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"
8196 if not prevRevID:
8297 prevRevID = str(int(maxRevID) - 10)
8398 if int(prevRevID) < 1:
@@ -266,7 +281,7 @@
267282 date = TimeUtils.today()
268283
269284 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)
271286 dump.doOneWiki()
272287 else:
273288 dump = IncrDumpLoop(config, date, doStubs, doRevs, dryrun, verbose, forcerun)

Status & tagging log