my $page=shift;
my ($filename, $tpage, $untrusted)=template_file($name);
+ if (! defined $filename) {
+ error(sprintf(gettext("template %s not found"), $name))
+ }
+
if (defined $page && defined $tpage) {
add_depends($page, $tpage);
}
-
- return unless defined $filename;
-
+
my @opts=(
filter => sub {
my $text_ref = shift;
$hooks{rcs}{rcs_receive}{call}->();
}
+sub rcs_preprevert ($) {
+ $hooks{rcs}{rcs_preprevert}{call}->(@_);
+}
+
+sub rcs_revert (@) {
+ $hooks{rcs}{rcs_revert}{call}->(@_);
+}
+
+sub rcs_showpatch ($) {
+ $hooks{rcs}{rcs_showpatch}{call}->(@_);
+}
+
sub add_depends ($$;$) {
my $page=shift;
my $pagespec=shift;