aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-06-05 01:58:40 +0100
committerMatthew Wild <mwild1@gmail.com>2009-06-05 01:58:40 +0100
commit561347ae2bcdb55951af04e1123cc8e26a9e2b66 (patch)
tree0832dbcd272e0a9fecf0dae37713adb307ccd4ff
parentfa242fdb09bc575469137c206e51da19a5699674 (diff)
downloadprosody-561347ae2bcdb55951af04e1123cc8e26a9e2b66.tar.gz
prosody-561347ae2bcdb55951af04e1123cc8e26a9e2b66.zip
prosody: Prefix hg: to changeset ids in the version
-rwxr-xr-xprosody3
1 files changed, 3 insertions, 0 deletions
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