use short names in comittype
authorJoey Hess <joey@gnu.kitenet.net>
Sat, 17 Jan 2009 18:39:53 +0000 (13:39 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Sat, 17 Jan 2009 18:39:53 +0000 (13:39 -0500)
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.

IkiWiki/Plugin/mercurial.pm
IkiWiki/Plugin/monotone.pm

index 82423286db0c9ccb03d52ea6ae146b25ad7ad0df..6c4855e5707016dd9e80776b22f795b15a182355 100644 (file)
@@ -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],
index 38abb9a07f21a3cc53ef430a012fb0528ba841a0..bdb564a71c30befd8d219e0796d58e5d52b7dcb3 100644 (file)
@@ -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');