summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-01-17 13:39:53 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-01-17 13:39:53 -0500
commit4bede22e4f2189a570ea43dec3b087052ef85edc (patch)
tree6e5298de19123a8832387631745a89fccd836ab1 /IkiWiki/Plugin
parentdf9ba9fb1a4a247a23867a507de3de323db5cac0 (diff)
use short names in comittype
Use mtn for monontone and hg for mercurial. The long names cause ugly formatting in recentchanges, which has CSS that only allows a few characters for the commit type column.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/mercurial.pm2
-rw-r--r--IkiWiki/Plugin/monotone.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/mercurial.pm b/IkiWiki/Plugin/mercurial.pm
index 82423286d..6c4855e57 100644
--- a/IkiWiki/Plugin/mercurial.pm
+++ b/IkiWiki/Plugin/mercurial.pm
@@ -217,7 +217,7 @@ sub rcs_recentchanges ($) {
push @ret, {
rev => $info->{"changeset"},
user => $user,
- committype => "mercurial",
+ committype => "hg",
when => str2time($info->{"date"}),
message => [@message],
pages => [@pages],
diff --git a/IkiWiki/Plugin/monotone.pm b/IkiWiki/Plugin/monotone.pm
index 38abb9a07..bdb564a71 100644
--- a/IkiWiki/Plugin/monotone.pm
+++ b/IkiWiki/Plugin/monotone.pm
@@ -559,7 +559,7 @@ sub rcs_recentchanges ($) {
if ($cert->{key} eq $config{mtnkey}) {
$committype = "web";
} else {
- $committype = "monotone";
+ $committype = "mtn";
}
} elsif ($cert->{name} eq "date") {
$when = str2time($cert->{value}, 'UTC');