diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-06-05 01:58:40 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-06-05 01:58:40 +0100 |
commit | 561347ae2bcdb55951af04e1123cc8e26a9e2b66 (patch) | |
tree | 0832dbcd272e0a9fecf0dae37713adb307ccd4ff /prosody | |
parent | fa242fdb09bc575469137c206e51da19a5699674 (diff) | |
download | prosody-561347ae2bcdb55951af04e1123cc8e26a9e2b66.tar.gz prosody-561347ae2bcdb55951af04e1123cc8e26a9e2b66.zip |
prosody: Prefix hg: to changeset ids in the version
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |