projects
/
mw
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store current revision ID in metadir
[mw]
/
src
/
mw
/
clicommands.py
diff --git
a/src/mw/clicommands.py
b/src/mw/clicommands.py
index c180c6ada2f43af5c1b11e7dbda88ad2ca549989..60d98df9978e7fa33f5127d8c3e476a594484732 100644
(file)
--- 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
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)
self.metadir.pages_add_rv(int(pageid),
response[pageid]['revisions'][0])
filename = mw.api.pagename_to_filename(pagename)
Benjamin Mako Hill
||
Want to submit a patch?