From 561347ae2bcdb55951af04e1123cc8e26a9e2b66 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 5 Jun 2009 01:58:40 +0100 Subject: prosody: Prefix hg: to changeset ids in the version --- prosody | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prosody b/prosody index 45d8836b..04ef9e31 100755 --- a/prosody +++ b/prosody @@ -92,6 +92,9 @@ local version_file = io.open((CFG_SOURCEDIR or ".").."/prosody.version"); if version_file then prosody.version = version_file:read("*a"):gsub("%s*$", ""); version_file:close(); + if #prosody.version == 12 and prosody.version:match("^[a-f0-9]+$") then + prosody.version = "hg:"..prosody.version; + end else prosody.version = "unknown"; end -- cgit v1.2.3