changeset 9489:cec4b0d3fb02

zeroconf: read actual description for repos in hgwebdir
author Alexander Solovyov <piranha@piranha.org.ua>
date Sat, 26 Sep 2009 00:17:55 +0300
parents 33a6213a974e
children 67df9f46f907
files hgext/zeroconf/__init__.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/zeroconf/__init__.py	Sat Sep 26 00:17:02 2009 +0300
+++ b/hgext/zeroconf/__init__.py	Sat Sep 26 00:17:55 2009 +0300
@@ -114,7 +114,8 @@
             u.readconfig(os.path.join(path, '.hg', 'hgrc'))
             name = os.path.basename(repo)
             path = (prefix + repo).strip('/')
-            publish(name, "hgweb", path, int(u.config("web", "port", 8000)))
+            desc = u.config('web', 'description', name)
+            publish(name, desc, path, int(u.config("web", "port", 8000)))
 
 # listen