]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/quieten-bzr.mdwn
po plugin cleanup .pot files
[ikiwiki.git] / doc / todo / quieten-bzr.mdwn
1 The _bzr_ plug echoes "added: somefile.mdwn" when it adds somefile.mdwn to the repository. As a result, the redirect performed after a new article is created fails because the _bzr_ output comes before the HTTP headers.
2
3 The fix is simply to call `bzr` with the _--quiet_ switch. Something like this applied to _bzr.pm_ works for me:
4
5     46c46
6     <   my @cmdline = ("bzr", $config{srcdir}, "update");
7     ---
8     >   my @cmdline = ("bzr", "update", "--quiet", $config{srcdir});
9     74c74
10     <   my @cmdline = ("bzr", "commit", "-m", $message, "--author", $user,
11     ---
12     >   my @cmdline = ("bzr", "commit", "--quiet", "-m", $message, "--author", $user, 
13     86c86
14     <   my @cmdline = ("bzr", "add", "$config{srcdir}/$file");
15     ---
16     >   my @cmdline = ("bzr", "add", "--quiet", "$config{srcdir}/$file");
17     94a95,97
18     >   eval q{use CGI 'escapeHTML'};
19     >   error($@) if $@;
20     > 
21
22
23 [[!tag patch]]
24
25 > [[done]], although I left off the escapeHTML thing which seems to be in
26 > your patch by accident.
27
28 > (Please use diff -u BTW..) --[[Joey]]