aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/quieten_mercurial.mdwn
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-18 21:59:04 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-18 21:59:04 +0000
commit62aecc19f0585779a443fead2fae23bf3483e44e (patch)
treec2042b449597520cd0fe358da2c6efe7bb7a11d5 /doc/bugs/quieten_mercurial.mdwn
parent21bc9abfcf0c7c2a80d0de2524167477e9b2b154 (diff)
downloadikiwiki-62aecc19f0585779a443fead2fae23bf3483e44e.tar
ikiwiki-62aecc19f0585779a443fead2fae23bf3483e44e.tar.gz
web commit by http://meep.pl/: bug report
Diffstat (limited to 'doc/bugs/quieten_mercurial.mdwn')
-rw-r--r--doc/bugs/quieten_mercurial.mdwn32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/bugs/quieten_mercurial.mdwn b/doc/bugs/quieten_mercurial.mdwn
new file mode 100644
index 000000000..790a3ff1a
--- /dev/null
+++ b/doc/bugs/quieten_mercurial.mdwn
@@ -0,0 +1,32 @@
+The mercurial backend does not pass the --quiet option to hg, and it sometimes prints
+messages which are then taken for CGI output, causing errors and general trouble. --MichaƂ
+
+ --- iki/usr/share/perl5/IkiWiki/Rcs/mercurial.pm 2006-12-29 02:48:30.000000000 +0100
+ +++ /usr/share/perl5/IkiWiki/Rcs/mercurial.pm 2007-03-18 22:45:24.000000000 +0100
+ @@ -55,7 +55,7 @@
+ }
+
+ sub rcs_update () { #{{{
+ - my @cmdline = ("hg", "-R", "$config{srcdir}", "update");
+ + my @cmdline = ("hg", "-q", "-R", "$config{srcdir}", "update");
+ if (system(@cmdline) != 0) {
+ warn "'@cmdline' failed: $!";
+ }
+ @@ -80,7 +80,7 @@
+
+ $message = possibly_foolish_untaint($message);
+
+ - my @cmdline = ("hg", "-R", "$config{srcdir}", "commit",
+ + my @cmdline = ("hg", "-q", "-R", "$config{srcdir}", "commit",
+ "-m", "$message", "-u", "$user");
+ if (system(@cmdline) != 0) {
+ warn "'@cmdline' failed: $!";
+ @@ -92,7 +92,7 @@
+ sub rcs_add ($) { # {{{
+ my ($file) = @_;
+
+ - my @cmdline = ("hg", "-R", "$config{srcdir}", "add", "$file");
+ + my @cmdline = ("hg", "-q", "-R", "$config{srcdir}", "add", "$file");
+ if (system(@cmdline) != 0) {
+ warn "'@cmdline' failed: $!";
+ }