X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/e0da57358cc778436a5e5af1a2523611eb64f46e..5f55ee0b783fb0a7b3b1dcb63ff280bad25af364:/t/mercurial.t diff --git a/t/mercurial.t b/t/mercurial.t index 7d6c2eacc..954b17526 100755 --- a/t/mercurial.t +++ b/t/mercurial.t @@ -19,6 +19,7 @@ BEGIN { use_ok("IkiWiki"); } %config=IkiWiki::defaultconfig(); $config{rcs} = "mercurial"; $config{srcdir} = "$dir/repo"; +IkiWiki::loadplugins(); IkiWiki::checkconfig(); system "hg init $config{srcdir}"; @@ -34,7 +35,7 @@ my @changes; is($#changes, 0); is($changes[0]{message}[0]{"line"}, "Added the first page"); -is($changes[0]{pages}[0]{"page"}, "test1.mdwn"); +is($changes[0]{pages}[0]{"page"}, "test1"); is($changes[0]{user}, "Joe User"); # Manual commit @@ -52,14 +53,11 @@ system "hg commit -R $config{srcdir} -u \"$user\" -m \"$message\" -d \"0 0\""; is($#changes, 1); is($changes[0]{message}[0]{"line"}, $message); is($changes[0]{user}, $username); -is($changes[0]{pages}[0]{"page"}, "test2.mdwn"); +is($changes[0]{pages}[0]{"page"}, "test2"); -is($changes[1]{pages}[0]{"page"}, "test1.mdwn"); +is($changes[1]{pages}[0]{"page"}, "test1"); -TODO: { - local $TODO = "hg behavior change seems to have broken this"; - my $ctime = IkiWiki::rcs_getctime("test2.mdwn"); - is($ctime, 0); -} +my $ctime = IkiWiki::rcs_getctime("test2.mdwn"); +is($ctime, 0); system "rm -rf $dir";