diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-03-12 15:45:10 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-03-12 15:45:10 -0400 |
commit | 862ca19eb1aee87e4ac05e8a5a9b326dd32dfe5d (patch) | |
tree | 65d67b5398db4cae6fd0d57526ba907b1b002d2c /IkiWiki/Rcs/Stub.pm | |
parent | 672893634be9d7e7f2b44c27e4927021b12eedb6 (diff) |
truncate recentchangesdiffs after 200 lines
This works around a perl crasher bug, and also avoids bloating pages
with enormous diffs.
rcs_recentchanges modified to return a list in an array context.
Diffstat (limited to 'IkiWiki/Rcs/Stub.pm')
-rw-r--r-- | IkiWiki/Rcs/Stub.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Rcs/Stub.pm b/IkiWiki/Rcs/Stub.pm index d94daf8bc..a460f29a2 100644 --- a/IkiWiki/Rcs/Stub.pm +++ b/IkiWiki/Rcs/Stub.pm @@ -60,7 +60,8 @@ sub rcs_recentchanges ($) { sub rcs_diff ($) { # Optional, used to get diffs for recentchanges. # The parameter is the rev from rcs_recentchanges. - return ""; + # Should return a list of lines of the diff (including \n) in list + # context, and the whole diff in scalar context. } sub rcs_getctime ($) { |