sub rcs_add ($) { # {{{
my ($file) = @_;
- my @cmdline = ("hg", "-q", "-R", "$config{srcdir}", "add", "$file");
+ my @cmdline = ("hg", "-q", "-R", "$config{srcdir}", "add", "$config{srcdir}/$file");
if (system(@cmdline) != 0) {
warn "'@cmdline' failed: $!";
}
eval q{use CGI 'escapeHTML'};
error($@) if $@;
- my @cmdline = ("hg", "-R", $config{srcdir}, "log", "-v", "-l", $num);
+ my @cmdline = ("hg", "-R", $config{srcdir}, "log", "-v", "-l", $num,
+ "--style", "default");
open (my $out, "@cmdline |");
eval q{use Date::Parse};
# 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', $file);
+ my @cmdline = ("hg", "-R", $config{srcdir}, "log", "-v", "-l", '1',
+ "--style", "default", "$config{srcdir}/$file");
open (my $out, "@cmdline |");
my @log = mercurial_log($out);