Use bzr --quiet to avoid it outputting stuff and messing up http headers. (Scott...
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 10 Apr 2008 21:44:40 +0000 (17:44 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 10 Apr 2008 21:44:40 +0000 (17:44 -0400)
IkiWiki/Rcs/bzr.pm
debian/changelog
doc/todo/quieten-bzr.mdwn

index 7ab2fd2c54bae3e4569b3a246adf02a18dd71967..af311fab8aab4411d8767d0f66133d413c76d516 100644 (file)
@@ -43,7 +43,7 @@ sub bzr_log ($) { #{{{
 } #}}}
 
 sub rcs_update () { #{{{
-       my @cmdline = ("bzr", "update", $config{srcdir});
+       my @cmdline = ("bzr", "update", "--quiet", $config{srcdir});
        if (system(@cmdline) != 0) {
                warn "'@cmdline' failed: $!";
        }
@@ -71,7 +71,7 @@ sub rcs_commit ($$$;$$) { #{{{
                $message = "no message given";
        }
 
-       my @cmdline = ("bzr", "commit", "-m", $message, "--author", $user,
+       my @cmdline = ("bzr", "commit", "--quiet", "-m", $message, "--author", $user,
                       $config{srcdir}."/".$file);
        if (system(@cmdline) != 0) {
                warn "'@cmdline' failed: $!";
@@ -83,7 +83,7 @@ sub rcs_commit ($$$;$$) { #{{{
 sub rcs_add ($) { # {{{
        my ($file) = @_;
 
-       my @cmdline = ("bzr", "add", "$config{srcdir}/$file");
+       my @cmdline = ("bzr", "add", "--quiet", "$config{srcdir}/$file");
        if (system(@cmdline) != 0) {
                warn "'@cmdline' failed: $!";
        }
index 5db99a2fbecb8a1442786ecf9caa1c2a13056b0a..9235064810dabea0206c4e58d59c3832d4358c2c 100644 (file)
@@ -2,6 +2,8 @@ ikiwiki (2.43) UNRELEASED; urgency=low
 
   * Fix missing import of escapeHTML in userlink. (Scott Bronson)
   * Fix broken rcs_update for bzr. (Scott Bronson)
+  * Use bzr --quiet to avoid it outputting stuff and messing up http headers.
+    (Scott Bronson)
 
  -- Joey Hess <joeyh@debian.org>  Thu, 10 Apr 2008 17:36:53 -0400
 
index f5f00b0a3d77f7fb9482c886c90640ff524878c6..11ce139b43f336dbbee9ca39911eb7311c157c5d 100644 (file)
@@ -21,3 +21,8 @@ The fix is simply to call `bzr` with the _--quiet_ switch. Something like this a
 
 
 [[tag patch]]
+
+> [[done]], although I left off the escapeHTML thing which seems to be in
+> your patch by accident.
+> 
+> (Please use diff -u BTW..) --[[Joey]]