aboutsummaryrefslogtreecommitdiff
path: root/doc/todo
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2008-04-10 00:07:59 -0400
committerJoey Hess <joey@kitenet.net>2008-04-10 00:07:59 -0400
commit675236d251cfbfa698470392f627e62591cd726b (patch)
tree76b18d93478b97960a84c00f33c745aa472c8821 /doc/todo
parent914a5645a55a884b1d61b7aa5734de426da18d76 (diff)
downloadikiwiki-675236d251cfbfa698470392f627e62591cd726b.tar
ikiwiki-675236d251cfbfa698470392f627e62591cd726b.tar.gz
web commit by cjb: Suggested patch for 302 redirect after page creation when using bzr
Diffstat (limited to 'doc/todo')
-rw-r--r--doc/todo/quieten-bzr.mdwn20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/todo/quieten-bzr.mdwn b/doc/todo/quieten-bzr.mdwn
new file mode 100644
index 000000000..78f9c0b55
--- /dev/null
+++ b/doc/todo/quieten-bzr.mdwn
@@ -0,0 +1,20 @@
+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.
+
+The fix is simply to call `bzr` with the _--quiet_ switch. Something like this applied to _bzr.pm_ works for me:
+
+ 46c46
+ < my @cmdline = ("bzr", $config{srcdir}, "update");
+ ---
+ > my @cmdline = ("bzr", "update", "--quiet", $config{srcdir});
+ 74c74
+ < my @cmdline = ("bzr", "commit", "-m", $message, "--author", $user,
+ ---
+ > my @cmdline = ("bzr", "commit", "--quiet", "-m", $message, "--author", $user,
+ 86c86
+ < my @cmdline = ("bzr", "add", "$config{srcdir}/$file");
+ ---
+ > my @cmdline = ("bzr", "add", "--quiet", "$config{srcdir}/$file");
+ 94a95,97
+ > eval q{use CGI 'escapeHTML'};
+ > error($@) if $@;
+ >