summaryrefslogtreecommitdiff
path: root/IkiWiki/Rcs
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-26 18:13:16 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-26 18:13:16 -0400
commitb277e00d4ec2dc3b50a111957b7fbd0c5ac7bbd9 (patch)
tree7916c7ea8e908c6c8871845939ab2c03abd1d2fd /IkiWiki/Rcs
parent66739016fafd95beb736dc37391fadd28dc47417 (diff)
add gensetup for hg
Diffstat (limited to 'IkiWiki/Rcs')
-rw-r--r--IkiWiki/Rcs/mercurial.pm20
1 files changed, 20 insertions, 0 deletions
diff --git a/IkiWiki/Rcs/mercurial.pm b/IkiWiki/Rcs/mercurial.pm
index 8c3f03e07..2ccba04da 100644
--- a/IkiWiki/Rcs/mercurial.pm
+++ b/IkiWiki/Rcs/mercurial.pm
@@ -8,6 +8,26 @@ use IkiWiki;
use Encode;
use open qw{:utf8 :std};
+hook(type => "getsetup", id => "mercurial", call => sub { #{{{
+ return
+ historyurl => {
+ type => "string",
+ default => "",
+ example => "http://example.com:8000/log/tip/[[file]]",
+ description => "url to hg serve'd repository, to show file history ([[file]] substituted)",
+ safe => 1,
+ rebuild => 1,
+ },
+ diffurl => {
+ type => "string",
+ default => "",
+ example => "http://localhost:8000/?fd=[[r2]];file=[[file]]",
+ description => "url to hg serve'd repository, to show diff ([[file]] and [[r2]] substituted)",
+ safe => 1,
+ rebuild => 1,
+ },
+}); #}}}
+
sub mercurial_log($) {
my $out = shift;
my @infos;