]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
Fix get_ctime implementation in Bazaar plugin, add get_mtime implementation.
[ikiwiki.git] / IkiWiki.pm
index 1730e476ae039ee2ff26241b810393184d648654..b37b1f34485b6301dfd7847d75ebb625e8c6295d 100644 (file)
@@ -440,10 +440,9 @@ sub getsetup () {
                safe => 0,
                rebuild => 0,
        },
-       getctime => {
+       gettime => {
                type => "internal",
-               default => 0,
-               description => "running in getctime mode",
+               description => "running in gettime mode",
                safe => 0,
                rebuild => 0,
        },
@@ -1512,6 +1511,7 @@ sub loadindex () {
                        open ($in, "<", "$config{wikistatedir}/indexdb") || return;
                }
                else {
+                       $config{gettime}=1; # first build
                        return;
                }
        }
@@ -1790,6 +1790,10 @@ sub rcs_getctime ($) {
        $hooks{rcs}{rcs_getctime}{call}->(@_);
 }
 
+sub rcs_getmtime ($) {
+       $hooks{rcs}{rcs_getmtime}{call}->(@_);
+}
+
 sub rcs_receive () {
        $hooks{rcs}{rcs_receive}{call}->();
 }