projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
deca107
)
fix rcs_getctime to return first, not last, change time
author
Joey Hess
<joey@gnu.kitenet.net>
Fri, 20 Mar 2009 20:24:19 +0000
(16:24 -0400)
committer
Joey Hess
<joey@gnu.kitenet.net>
Fri, 20 Mar 2009 20:24:19 +0000
(16:24 -0400)
This was being buggy and returning the file's last change time, not its
creation time.
IkiWiki/Plugin/mercurial.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/mercurial.pm
b/IkiWiki/Plugin/mercurial.pm
index 6c4855e5707016dd9e80776b22f795b15a182355..11fdec529373c6b430a8e77bebb2c0a3aa6972b7 100644
(file)
--- a/
IkiWiki/Plugin/mercurial.pm
+++ b/
IkiWiki/Plugin/mercurial.pm
@@
-236,7
+236,7
@@
sub rcs_getctime ($) {
# XXX filename passes through the shell here, should try to avoid
# that just in case
- my @cmdline = ("hg", "-R", $config{srcdir}, "log", "-v",
"-l", '1',
+ my @cmdline = ("hg", "-R", $config{srcdir}, "log", "-v",
"--style", "default", "$config{srcdir}/$file");
open (my $out, "@cmdline |");
@@
-249,7
+249,7
@@
sub rcs_getctime ($) {
eval q{use Date::Parse};
error($@) if $@;
- my $ctime = str2time($log[
0
]->{"date"});
+ my $ctime = str2time($log[
$#log
]->{"date"});
return $ctime;
}