- # 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',
- "--style", "default", "$config{srcdir}/$file");
- open (my $out, "@cmdline |");
+ my @cmdline = ("hg", "-R", $config{srcdir}, "log", "-v",
+ "--style", "default", $file);
+ open (my $out, "-|", @cmdline);