diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-11-26 20:01:43 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-11-26 20:01:43 +0000 |
commit | b20d4f6681c0f2ccebc8ea2d75414d3d194c5188 (patch) | |
tree | 1ee88e32735ace7a639432d07bc6fd1bc4eca04b /t | |
parent | 06137b95d419fd62a3c8065430fec302c2680454 (diff) | |
download | ikiwiki-b20d4f6681c0f2ccebc8ea2d75414d3d194c5188.tar ikiwiki-b20d4f6681c0f2ccebc8ea2d75414d3d194c5188.tar.gz |
* Mercurial backend improvements, including --get-ctime support.
Diffstat (limited to 't')
-rwxr-xr-x | t/mercurial.t | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/t/mercurial.t b/t/mercurial.t index c42e328c2..da4e2beaa 100755 --- a/t/mercurial.t +++ b/t/mercurial.t @@ -12,7 +12,7 @@ BEGIN { } } } -use Test::More tests => 10; +use Test::More tests => 11; BEGIN { use_ok("IkiWiki"); } @@ -45,7 +45,7 @@ my $message = "Added the second page"; my $test2 = readfile("t/test2.mdwn"); writefile('test2.mdwn', $config{srcdir}, $test2); system "hg add -R $config{srcdir} $config{srcdir}/test2.mdwn"; -system "hg commit -R $config{srcdir} -u \"$user\" -m \"$message\""; +system "hg commit -R $config{srcdir} -u \"$user\" -m \"$message\" -d \"0 0\""; @changes = IkiWiki::rcs_recentchanges(3); @@ -56,4 +56,7 @@ is($changes[0]{pages}[0]{"page"}, "test2.mdwn"); is($changes[1]{pages}[0]{"page"}, "test1.mdwn"); +my $ctime = IkiWiki::rcs_getctime("test2.mdwn"); +is($ctime, 0); + system "rm -rf $dir"; |