Changeset

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 1312:ad7d144b6796
children 1314:c18cf7ccc2de
files prosody
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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