- my $dir2 = "test4/test5";
- can_mkdir($_) for ('test4', $dir2);
- writefile("$dir2/test1.mdwn", $config{srcdir},readfile("t/test1.mdwn"));
- IkiWiki::rcs_add("$dir2/test1.mdwn");
- IkiWiki::rcs_commit(
- file => "$dir2/test1.mdwn",
- message => $message,
- token => "omo",
- );
- is_newly_added("$dir2/test1.mdwn");
-# is_in_keyword_substitution_mode("$dir2/test1.mdwn", undef);
+ can_mkdir($_) for (qw(test4 test4/test5));
+ $file = q{test4/test5/test1.mdwn};
+ add_and_commit($file, $message, readfile("t/test1.mdwn"));
+ is_newly_added($file);
+ is_in_keyword_substitution_mode($file, undef);