Mercurial > moin > 1.9
changeset 3353:8e615ef236e2
allow saving a comment when reverting
author | Johannes Berg <johannes AT sipsolutions DOT net> |
---|---|
date | Thu, 20 Mar 2008 16:03:11 +0100 |
parents | bbc4932e0fa7 |
children | 3f2e51a2dd08 |
files | MoinMoin/PageEditor.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/PageEditor.py Thu Mar 20 16:01:18 2008 +0100 +++ b/MoinMoin/PageEditor.py Thu Mar 20 16:03:11 2008 +0100 @@ -658,7 +658,7 @@ return False, _('Could not rename page because of file system error: %s.') % unicode(err) - def revertPage(self, revision): + def revertPage(self, revision, comment=u''): """ Reverts page to the given revision @param revision: revision to revert to @@ -676,7 +676,7 @@ else: revstr = '%08d' % revision pg = Page(self.request, self.page_name, rev=revision) - msg = self.saveText(pg.get_raw_body(), 0, extra=revstr, action="SAVE/REVERT", notify=False) + msg = self.saveText(pg.get_raw_body(), 0, extra=revstr, action="SAVE/REVERT", notify=False, comment=comment) # Remove cache entry (if exists) pg = Page(self.request, self.page_name)