summaryrefslogtreecommitdiff
path: root/doc/plugins
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-10-08 17:54:12 -0400
committerJoey Hess <joey@kitenet.net>2010-10-08 17:54:12 -0400
commit84111d96c461a5d31a615ebf64cae751e6fd9aef (patch)
treec816fc340bd318eda018da949317d5e8787f595f /doc/plugins
parent594eb32780466e89390bacc61f8c28b1d4ca9f0b (diff)
make revert hooks optional
I removed the IkiWiki::rcs_ stubs for the revert hooks. Instead recentchanges tests to see if the hooks are available and calls them directly.
Diffstat (limited to 'doc/plugins')
-rw-r--r--doc/plugins/write.mdwn5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index dbbe83851..6b751f0cd 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -1154,8 +1154,6 @@ context, and the whole diff in scalar context.
This is used to get the page creation time for a file from the RCS, by looking
it up in the history.
-It's ok if this is not implemented, and throws an error.
-
If the RCS cannot determine a ctime for the file, return 0.
#### `rcs_getmtime($)`
@@ -1210,6 +1208,9 @@ It should try to revert the specified rev, and leave the reversion staged
so `rcs_commit_staged` will complete it. It should return undef on _success_
and an error message on failure.
+This hook and `rcs_preprevert` are optional, if not implemented, no revert
+web interface will be available.
+
### PageSpec plugins
It's also possible to write plugins that add new functions to