fix rcs_getctime to return first, not last, change time
This was being buggy and returning the file's last change time, not its creation time.master
parent
deca107db5
commit
2c86616a6a
|
@ -236,7 +236,7 @@ sub rcs_getctime ($) {
|
||||||
|
|
||||||
# XXX filename passes through the shell here, should try to avoid
|
# XXX filename passes through the shell here, should try to avoid
|
||||||
# that just in case
|
# 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");
|
"--style", "default", "$config{srcdir}/$file");
|
||||||
open (my $out, "@cmdline |");
|
open (my $out, "@cmdline |");
|
||||||
|
|
||||||
|
@ -249,7 +249,7 @@ sub rcs_getctime ($) {
|
||||||
eval q{use Date::Parse};
|
eval q{use Date::Parse};
|
||||||
error($@) if $@;
|
error($@) if $@;
|
||||||
|
|
||||||
my $ctime = str2time($log[0]->{"date"});
|
my $ctime = str2time($log[$#log]->{"date"});
|
||||||
return $ctime;
|
return $ctime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue