Mercurial > prosody-hg
diff prosody @ 1313:6c7347696caa
prosody: Prefix hg: to changeset ids in the version
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 05 Jun 2009 01:58:40 +0100 |
| parents | fc113027a1d5 |
| children | c18cf7ccc2de |
line wrap: on
line diff
--- a/prosody Fri Jun 05 01:27:41 2009 +0100 +++ b/prosody Fri Jun 05 01:58:40 2009 +0100 @@ -92,6 +92,9 @@ 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
