comparison hgext/zeroconf/__init__.py @ 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 25e572394f5c
comparison
equal deleted inserted replaced
9488:33a6213a974e 9489:cec4b0d3fb02
112 for repo, path in self.repos: 112 for repo, path in self.repos:
113 u = self.ui.copy() 113 u = self.ui.copy()
114 u.readconfig(os.path.join(path, '.hg', 'hgrc')) 114 u.readconfig(os.path.join(path, '.hg', 'hgrc'))
115 name = os.path.basename(repo) 115 name = os.path.basename(repo)
116 path = (prefix + repo).strip('/') 116 path = (prefix + repo).strip('/')
117 publish(name, "hgweb", path, int(u.config("web", "port", 8000))) 117 desc = u.config('web', 'description', name)
118 publish(name, desc, path, int(u.config("web", "port", 8000)))
118 119
119 # listen 120 # listen
120 121
121 class listener(object): 122 class listener(object):
122 def __init__(self): 123 def __init__(self):