]> sipb.mit.edu Git - ikiwiki.git/commit
rename hook: run once per file to be renamed
authorintrigeri <intrigeri@boum.org>
Sun, 8 Mar 2009 10:44:00 +0000 (11:44 +0100)
committerintrigeri <intrigeri@boum.org>
Sun, 8 Mar 2009 10:44:00 +0000 (11:44 +0100)
commit8cfe428a28b2714c57282566466f4f7bdbdfdffb
tree3548f3deab8249300ae72813f3ee5399db715377
parentae474d8e14631ff519ed7d54bb64eaa0538f56d9
rename hook: run once per file to be renamed

... as Joey suggested on todo/need_global_renamepage_hook

This hook is applied recursively to returned additional rename
hashes, so that it handles the case where two plugins use the hook:
plugin A would see when plugin B adds a new file to be renamed.

The full set of rename hashes can no longer be changed by hook functions, that
are only allowed to return any additional rename hashes it wants to add.
Rationale: the correct behavior of the recursion would be hard, if not
impossible, to define, if already considered pages were changing on the run.

Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Plugin/po.pm
IkiWiki/Plugin/rename.pm
doc/plugins/write.mdwn