projects
/
mw
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
993ca0c
)
commit needs to write latest rev to file too, as text may be changed such as a sig...
author
reagle
<joseph.2008@reagle.org>
Thu, 3 Feb 2011 13:52:29 +0000
(08:52 -0500)
committer
reagle
<joseph.2008@reagle.org>
Thu, 3 Feb 2011 13:52:29 +0000
(08:52 -0500)
src/mw/clicommands.py
patch
|
blob
|
history
diff --git
a/src/mw/clicommands.py
b/src/mw/clicommands.py
index dcc5682d58a70874b6381cc7a6ce191cfc8b7006..3be6da394fec01f618cf5afc11e42805e56f88fd 100644
(file)
--- a/
src/mw/clicommands.py
+++ b/
src/mw/clicommands.py
@@
-346,6
+346,12
@@
class CommitCommand(CommandBase):
response = self.api.call(data)['query']['pages']
self.metadir.pages_add_rv(int(pageid),
response[pageid]['revisions'][0])
response = self.api.call(data)['query']['pages']
self.metadir.pages_add_rv(int(pageid),
response[pageid]['revisions'][0])
+ # need to write latest rev to file too, as text may be changed
+ # such as a signature
+ with file(full_filename, 'w') as fd:
+ data = response[pageid]['revisions'][0]['*']
+ data = data.encode('utf-8')
+ fd.write(data)
if file_num != len(status) - 1:
print 'waiting 3s before processing the next file'
time.sleep(3)
if file_num != len(status) - 1:
print 'waiting 3s before processing the next file'
time.sleep(3)
Benjamin Mako Hill
||
Want to submit a patch?