sub rcs_preprevert (@) {
# Determine what the effects are of reverting the patch with the
# ID given by 'rev'. Returns the same structure as rcs_receive.
- # FIXME note test_changes expects 'cgi' and 'session' parameters.
+ # Note test_changes expects 'cgi' and 'session' parameters.
my %params = @_;
my $rev = $params{rev};
my %params = @_;
my $rev = $params{rev};
- # FIXME check
- my @r = run_or_die('git', 'show', $rev);
-
- return join "\n", @r;
+ return join "\n", run_or_die('git', 'show', $rev);
}
1
IkiWiki::enable_commit_hook();
if($r) {
- die "FIXME revert '$rev' failed.";
+ die "Revert '$rev' failed.";
} else {
require IkiWiki::Render;
IkiWiki::refresh();
IkiWiki::saveindex();
- # FIXME indicate success.
}
} else {
$form->title(sprintf(gettext("confirm reversion of %s"), $rev));