]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Add simple patch to silence a warning when using monotone
authorhttp://www.cse.unsw.edu.au/~willu/ <http://www.cse.unsw.edu.au/~willu/@web>
Sat, 2 Aug 2008 13:43:10 +0000 (09:43 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 2 Aug 2008 13:43:10 +0000 (09:43 -0400)
doc/todo/Silence_monotone_warning.mdwn [new file with mode: 0644]

diff --git a/doc/todo/Silence_monotone_warning.mdwn b/doc/todo/Silence_monotone_warning.mdwn
new file mode 100644 (file)
index 0000000..db87657
--- /dev/null
@@ -0,0 +1,15 @@
+A quick [[patch]] to silence a [[rcs/monotone]] warning I started seeing:
+
+    diff --git a/IkiWiki/Plugin/monotone.pm b/IkiWiki/Plugin/monotone.pm
+    index 4b9be31..9d4e280 100644
+    --- a/IkiWiki/Plugin/monotone.pm
+    +++ b/IkiWiki/Plugin/monotone.pm
+    @@ -55,7 +55,7 @@ sub checkconfig () { #{{{
+               error("Monotone version too old, is $version but required 0.38");
+       }
+     
+    -  if (length $config{mtn_wrapper}) {
+    +  if (defined $config{mtn_wrapper} && length $config{mtn_wrapper}) {
+               push @{$config{wrappers}}, {
+                       wrapper => $config{mtn_wrapper},
+                       wrappermode => (defined $config{mtn_wrappermode} ? $config{mtn_wrappermode} : "06755"),