- if (! defined $r) { # success
- rcs_commit_staged(
- message => sprintf(gettext("This reverts commit %s"), $rev),
- session => $session,
- rev => $rev,
- );
- }
+ error $r if defined $r;
+ IkiWiki::disable_commit_hook();
+ rcs_commit_staged(
+ message => sprintf(gettext("This reverts commit %s"), $rev),
+ session => $session,
+ );