hgext/zeroconf/__init__.py
branchstable
changeset 27910 d2c5ad3deccb
parent 25186 80c5b2666a96
child 28038 72f2a19c5f88
equal deleted inserted replaced
27909:3203dfe341f9 27910:d2c5ad3deccb
   111 
   111 
   112     try:
   112     try:
   113         repos = app.repos
   113         repos = app.repos
   114     except AttributeError:
   114     except AttributeError:
   115         # single repo
   115         # single repo
   116         name = app.reponame or os.path.basename(app.repo.root)
   116         with app._obtainrepo() as repo:
   117         path = app.repo.ui.config("web", "prefix", "").strip('/')
   117             name = app.reponame or os.path.basename(repo.root)
   118         desc = app.repo.ui.config("web", "description", name)
   118             path = repo.ui.config("web", "prefix", "").strip('/')
       
   119             desc = repo.ui.config("web", "description", name)
   119         publish(name, desc, path, port)
   120         publish(name, desc, path, port)
   120     else:
   121     else:
   121         # webdir
   122         # webdir
   122         prefix = app.ui.config("web", "prefix", "").strip('/') + '/'
   123         prefix = app.ui.config("web", "prefix", "").strip('/') + '/'
   123         for repo, path in repos:
   124         for repo, path in repos: