X-Git-Url: https://projects.mako.cc/source/mw/blobdiff_plain/e670001ebb36dc1592e94b60c271232e427f3d64..90afbee67cd871468f755c9a9769d53adca9941c:/src/mw/clicommands.py diff --git a/src/mw/clicommands.py b/src/mw/clicommands.py index c180c6a..60d98df 100644 --- a/src/mw/clicommands.py +++ b/src/mw/clicommands.py @@ -96,8 +96,9 @@ class PullCommand(CommandBase): print '%s: %s: page does not exist, file not created' % \ (self.me, pagename) continue - revid = [x['revid'] for x in response[pageid]['revisions']] - self.metadir.pagedict_add(pagename, int(pageid)) + revids = [x['revid'] for x in response[pageid]['revisions']] + revids.sort() + self.metadir.pagedict_add(pagename, pageid, revids[-1]) self.metadir.pages_add_rv(int(pageid), response[pageid]['revisions'][0]) filename = mw.api.pagename_to_filename(pagename)