- return $f, ["Revert", "Cancel"];
-}
-
-sub sessioncgi ($$) {
- my ($q, $session) = @_;
- my $do = $q->param('do');
- my $rev = $q->param('rev');
-
- return unless $do eq 'revert' && $rev;
-
- my @changes=$IkiWiki::hooks{rcs}{rcs_preprevert}{call}->($rev);
- require IkiWiki::Receive;
- IkiWiki::Receive::test_changes(
- cgi => $q,
- session => $session,
- changes => \@changes,
- );
-
- my ($form, $buttons) = confirmation_form($q, $session);