]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/darcs.pm
fix in a branch
[ikiwiki.git] / IkiWiki / Plugin / darcs.pm
index 2448673ac49169024aea08b0e8305d8a8622d414..1c9538e83efb490a637b21bf2da818ddbe682bd6 100644 (file)
@@ -73,7 +73,7 @@ sub darcs_rev($) {
        my $file = shift; # Relative to the repodir.
        my $repodir = $config{srcdir};
 
-       return "" if (! file_in_vc($repodir, $file));
+       return "" unless file_in_vc($repodir, $file);
        my $hash = darcs_info('hash', $repodir, $file);
        return defined $hash ? $hash : "";
 }
@@ -92,6 +92,7 @@ sub getsetup() {
                plugin => {
                        safe => 0, # rcs plugin
                        rebuild => undef,
+                       section => "rcs",
                },
                darcs_wrapper => {
                        type => "string",