60d3a7b959eb7d7702bc8602058e03efdb874790
[ikiwiki.git] / doc / bugs / bzr_plugin_does_not_define_rcs__95__diff.mdwn
1 The bzr plugin does not seem to define the rcs_diff subroutine.
2 I got the follow error after enabling recentchangesdiff:
3
4 "Undefined subroutine &IkiWiki::Plugin::bzr::rcs_diff called at /usr/share/perl5/IkiWiki.pm line 1590."
5
6 Grepping to verify absence of rcs_diff:
7
8     $ grep rcs_diff /usr/share/perl5/IkiWiki/Plugin/{git,bzr}.pm
9     /usr/share/perl5/IkiWiki/Plugin/git.pm:     hook(type => "rcs", id => "rcs_diff", call => \&rcs_diff);
10     /usr/share/perl5/IkiWiki/Plugin/git.pm:sub rcs_diff ($) {
11     /usr/share/perl5/IkiWiki/Plugin/bzr.pm:     hook(type => "rcs", id => "rcs_diff", call => \&rcs_diff);
12
13 > I've added the minimal stub needed to avoid the crash, but for
14 > recentchangesdiff to work, someone needs to implement `rcs_diff` for bzr.
15 > This should be trivial if you know and use bzr. The function
16 > is passed as a parameter the revno of interest and just needs
17 > to ask bzr for the diff between that and the previous version. --[[Joey]] 
18
19 >> I'll see if I can make a patch. The bzr command to get the revision would
20 >> look like this: bzr diff -r revno:$PREV:/path/to/src..revno:$REVNO:/path/to/src
21 >> (where $PREV would be $REVNO minus one). --liw