New command: do_log(page).
This new command displays the last revisions of the page. TODO: specific formatter (it should display the history like git log).
This commit is contained in:
parent
5d24cec733
commit
a6f5ef2049
1 changed files with 8 additions and 0 deletions
|
|
@ -113,3 +113,11 @@ class WebContentEdit(ReplApplication):
|
||||||
|
|
||||||
if len(errors.errors) > 0:
|
if len(errors.errors) > 0:
|
||||||
raise errors
|
raise errors
|
||||||
|
|
||||||
|
def do_log(self, line):
|
||||||
|
for id in line.split():
|
||||||
|
_id, backend_name = self.parse_id(id)
|
||||||
|
backend_names = (backend_name,) if backend_name is not None else self.enabled_backends
|
||||||
|
|
||||||
|
for backend, revision in self.do('iter_revisions', _id):
|
||||||
|
self.format(revision)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue