summaryrefslogtreecommitdiff
path: root/IkiWiki/Rcs/bzr.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-26 18:26:39 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-26 18:26:56 -0400
commit90b310b93c3dc3c9e7142fc8d1e0c8c7562659b2 (patch)
tree460b3137c70d64c3f77e675553aa0b6e13d312a1 /IkiWiki/Rcs/bzr.pm
parent21af3ae336861dc14cb0e71b063f294b72487fb1 (diff)
getsetup-ize svn and bzr
Diffstat (limited to 'IkiWiki/Rcs/bzr.pm')
-rw-r--r--IkiWiki/Rcs/bzr.pm20
1 files changed, 20 insertions, 0 deletions
diff --git a/IkiWiki/Rcs/bzr.pm b/IkiWiki/Rcs/bzr.pm
index c80356159..30fa4482e 100644
--- a/IkiWiki/Rcs/bzr.pm
+++ b/IkiWiki/Rcs/bzr.pm
@@ -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 = ();