]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/norcs.pm
Provide a UUID in edittemplate templates.
[ikiwiki.git] / IkiWiki / Plugin / norcs.pm
index bfe84c0e1ebc15961986ce57a59be9fc26c53290..6fa8bfa3adc8e49f61a4abf42941452f57eb0fb8 100644 (file)
@@ -18,6 +18,7 @@ sub import {
        hook(type => "rcs", id => "rcs_recentchanges", call => \&rcs_recentchanges);
        hook(type => "rcs", id => "rcs_diff", call => \&rcs_diff);
        hook(type => "rcs", id => "rcs_getctime", call => \&rcs_getctime);
        hook(type => "rcs", id => "rcs_recentchanges", call => \&rcs_recentchanges);
        hook(type => "rcs", id => "rcs_diff", call => \&rcs_diff);
        hook(type => "rcs", id => "rcs_getctime", call => \&rcs_getctime);
+       hook(type => "rcs", id => "rcs_getmtime", call => \&rcs_getmtime);
 }
 
 sub getsetup () {
 }
 
 sub getsetup () {
@@ -25,6 +26,7 @@ sub getsetup () {
                plugin => {
                        safe => 0, # rcs plugin
                        rebuild => 0,
                plugin => {
                        safe => 0, # rcs plugin
                        rebuild => 0,
+                       section => "rcs",
                },
 }
 
                },
 }
 
@@ -36,13 +38,11 @@ sub rcs_prepedit ($) {
        return ""
 }
 
        return ""
 }
 
-sub rcs_commit ($$$;$$) {
-       my ($file, $message, $rcstoken, $user, $ipaddr) = @_;
+sub rcs_commit (@) {
        return undef # success
 }
 
        return undef # success
 }
 
-sub rcs_commit_staged ($$$) {
-       my ($message, $user, $ipaddr)=@_;
+sub rcs_commit_staged (@) {
        return undef # success
 }
 
        return undef # success
 }
 
@@ -58,11 +58,15 @@ sub rcs_rename ($$) {
 sub rcs_recentchanges ($) {
 }
 
 sub rcs_recentchanges ($) {
 }
 
-sub rcs_diff ($) {
+sub rcs_diff ($;$) {
 }
 
 sub rcs_getctime ($) {
 }
 
 sub rcs_getctime ($) {
-       error gettext("getctime not implemented");
+       return 0;
+}
+
+sub rcs_getmtime ($) {
+       return 0;
 }
 
 1
 }
 
 1