diff --git a/src/lib/Hydra/Plugin/MercurialInput.pm b/src/lib/Hydra/Plugin/MercurialInput.pm
index 07db0728..6882bcce 100644
--- a/src/lib/Hydra/Plugin/MercurialInput.pm
+++ b/src/lib/Hydra/Plugin/MercurialInput.pm
@@ -52,7 +52,7 @@ sub fetchInput {
die "error pulling latest change mercurial repo at `$uri':\n$stderr" if $res;
(my $res1, $stdout, $stderr) = captureStdoutStderr(600,
- "hg", "log", "-r", $id, "--template", "{node|short} {rev} {branch}");
+ "hg", "log", "-r", $id, "--template", "{node} {rev} {branch}");
die "error getting branch and revision of $id from `$uri':\n$stderr" if $res1;
my ($revision, $revCount, $branch) = split ' ', $stdout;
diff --git a/src/root/common.tt b/src/root/common.tt
index 44f962bd..61f08b4c 100644
--- a/src/root/common.tt
+++ b/src/root/common.tt
@@ -380,6 +380,8 @@ BLOCK renderShortEvalInput;
r[% input.revision %]
[% ELSIF input.type == "git" %]
[% input.revision.substr(0, 7) %]
+ [% ELSIF input.type == "hg" %]
+ [% input.revision.substr(0, 12) %]
[% ELSIF input.type == "build" || input.type == "sysbuild" %]
[% input.get_column('dependency') %]
[% ELSE %]