]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Merge branch 'master' into comments
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 17 Dec 2008 19:06:57 +0000 (14:06 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 17 Dec 2008 19:06:57 +0000 (14:06 -0500)
IkiWiki/Plugin/monotone.pm
IkiWiki/Plugin/rename.pm
debian/changelog
doc/bugs/IkiWiki::Wrapper_should_use_destdir/discussion.mdwn [new file with mode: 0644]
doc/bugs/bugfix_for:___34__mtn:_operation_canceled:_Broken_pipe__34_____40__patch__41__.mdwn [new file with mode: 0644]
doc/users/jon.mdwn

index f31a8606bb4f664b6d626c345e668bf4e884dda3..3a8b267a393f5d69cdccc1577df795d2504ce73d 100644 (file)
@@ -525,13 +525,12 @@ sub rcs_recentchanges ($) { #{{{
        my $child = open(MTNLOG, "-|");
        if (! $child) {
                exec("mtn", "log", "--root=$config{mtnrootdir}", "--no-graph",
-                    "--brief") || error("mtn log failed to run");
+                    "--brief", "--last=$num") || error("mtn log failed to run");
        }
 
-       while (($num >= 0) and (my $line = <MTNLOG>)) {
+       while (my $line = <MTNLOG>) {
                if ($line =~ m/^($sha1_pattern)/) {
                        push @revs, $1;
-                       $num -= 1;
                }
        }
        close MTNLOG || debug("mtn log exited $?");
index 7e55e271cbe6a403115fb38eff1f5655fbc626d6..e4201cc941ec81fe736fbe4ef54a610a66ec7031 100644 (file)
@@ -111,7 +111,7 @@ sub rename_form ($$$) { #{{{
        
        $f->field(name => "do", type => "hidden", value => "rename", force => 1);
        $f->field(name => "page", type => "hidden", value => $page, force => 1);
-       $f->field(name => "new_name", value => pagetitle($page), size => 60);
+       $f->field(name => "new_name", value => pagetitle($page, 1), size => 60);
        if (!$q->param("attachment")) {
                # insert the standard extensions
                my @page_types;
index 727447023178f7fdda51f83179216d038dde1cb7..b884dd596cd43e366c33f2f8b6beb28e40ecef49 100644 (file)
@@ -16,6 +16,9 @@ ikiwiki (2.71) UNRELEASED; urgency=low
     generated.
   * meta: Pass info to htmlscrubber so htmlscrubber_skip can take effect.
   * htmlbalance: don't compact whitespace, and set misc other options (smcv)
+  * rename: Fix double-escaping of page name in edit box.
+  * monotone: When getting the log, tell monotone how many entries
+    we want, rather than closing the pipe, which it dislikes. (thm)
 
  -- Joey Hess <joeyh@debian.org>  Mon, 17 Nov 2008 14:02:10 -0500
 
diff --git a/doc/bugs/IkiWiki::Wrapper_should_use_destdir/discussion.mdwn b/doc/bugs/IkiWiki::Wrapper_should_use_destdir/discussion.mdwn
new file mode 100644 (file)
index 0000000..870fa7a
--- /dev/null
@@ -0,0 +1,4 @@
+Just as a point of information, I do not put my cgi wrapper in the dest
+directory. Instead I configure Apache to relate a specific URI to the cgi via
+ScriptAlias. I would not like things to be changed so that the cgi was put in
+the destdir, so I'd vote instead to comment in the `setup\_file`. -- [[Jon]]
diff --git a/doc/bugs/bugfix_for:___34__mtn:_operation_canceled:_Broken_pipe__34_____40__patch__41__.mdwn b/doc/bugs/bugfix_for:___34__mtn:_operation_canceled:_Broken_pipe__34_____40__patch__41__.mdwn
new file mode 100644 (file)
index 0000000..aa13ec3
--- /dev/null
@@ -0,0 +1,24 @@
+When using monotone as revision control system, a "mtn: operation canceled: Broken pipe" message is printed. Reason is that, in a call to mtn, the pipe is closed before mtn has done all its output. This patch fixes the problem.
+
+    diff -up ikiwiki/IkiWiki/Plugin/monotone.pm.orig ikiwiki/IkiWiki/Plugin/monotone.pm
+    --- ikiwiki/IkiWiki/Plugin/monotone.pm.orig        2008-11-12 23:45:24.000000000 +0100
+    +++ ikiwiki/IkiWiki/Plugin/monotone.pm     2008-12-16 12:41:38.000000000 +0100
+    @@ -525,13 +525,12 @@ sub rcs_recentchanges ($) { #{{{
+       my $child = open(MTNLOG, "-|");
+       if (! $child) {
+               exec("mtn", "log", "--root=$config{mtnrootdir}", "--no-graph",
+    -               "--brief") || error("mtn log failed to run");
+    +               "--brief", "--last=$num") || error("mtn log failed to run");
+       }
+     
+    -  while (($num >= 0) and (my $line = <MTNLOG>)) {
+    +  while (my $line = <MTNLOG>) {
+               if ($line =~ m/^($sha1_pattern)/) {
+                       push @revs, $1;
+    -                  $num -= 1;
+               }
+       }
+       close MTNLOG || debug("mtn log exited $?");
+
+> Thanks for the patch, and for testing the monotone backend.
+> applied [[done]] --[[Joey]]
index 72f04e593153835a96b7e35051ed48a438a80904..3e22ded1daa34eefa59773056bb5009ef2bf95f0 100644 (file)
@@ -1,3 +1,4 @@
+[[!meta title="Jon Dowland"]]
 I'm looking at ikiwiki both for my personal site but also as a
 team-documentation management system for a small-sized group of UNIX
 sysadmins.