zeroconf: read actual description for repos in hgwebdir
authorAlexander Solovyov <piranha@piranha.org.ua>
Sat, 26 Sep 2009 00:17:55 +0300
changeset 9489 cec4b0d3fb02
parent 9488 33a6213a974e
child 9490 67df9f46f907
zeroconf: read actual description for repos in hgwebdir
hgext/zeroconf/__init__.py
--- 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