]> scripts.mit.edu Git - www/ikiwiki.git/blobdiff - IkiWiki/Rcs/bzr.pm
getsetup-ize svn and bzr
[www/ikiwiki.git] / IkiWiki / Rcs / bzr.pm
index c80356159f6d97080063da5964bdb904f114e1e2..30fa4482ea9667413b0cf3663611af5d8166a3c9 100644 (file)
@@ -8,6 +8,26 @@ use IkiWiki;
 use Encode;
 use open qw{:utf8 :std};
 
+hook(type => "getsetup", id => "bzr", call => sub { #{{{
+       return
+               historyurl => {
+                       type => "string",
+                       default => "",
+                       #example => "", # FIXME add example
+                       description => "url to show file history, using loggerhead ([[file]] substituted)",
+                       safe => 1,
+                       rebuild => 1,
+               },
+               diffurl => {
+                       type => "string",
+                       default => "",
+                       example => "http://example.com/revision?start_revid=[[r2]]#[[file]]-s",
+                       description => "url to view a diff, using loggerhead ([[file]] and [[r2]] substituted)",
+                       safe => 1,
+                       rebuild => 1,
+               },
+}); #}}}
+
 sub bzr_log ($) { #{{{
        my $out = shift;
        my @infos = ();