# HG changeset patch # User Alexander Solovyov # Date 2009-09-25 21:17:55 # Node ID cec4b0d3fb02791aec8c3c7c4535a60945d4d45f # Parent 33a6213a974e58f5350694bac7702d5d467114c9 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