[PATCH 2 of 2] zeroconf: read actual description for repos in hgwebdir

Alexander Solovyov piranha at piranha.org.ua
Fri Sep 25 16:27:03 CDT 2009


# HG changeset patch
# User Alexander Solovyov <piranha at piranha.org.ua>
# Date 1253913475 -10800
# Node ID 9114629969488f36ce474cd6eaac10838a0b34e5
# Parent  8dbf562489c4456293edb3eb5ca176aa3cc3642f
zeroconf: read actual description for repos in hgwebdir

diff --git a/hgext/zeroconf/__init__.py b/hgext/zeroconf/__init__.py
--- a/hgext/zeroconf/__init__.py
+++ b/hgext/zeroconf/__init__.py
@@ -114,7 +114,8 @@ class hgwebdirzc(hgwebdir_mod.hgwebdir):
             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
 


More information about the Mercurial-devel mailing list