Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb.py @ 1170:85555540a4e2
Make .hg/hgrc optional for repositories published by hgwebdir.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 31 Aug 2005 07:25:02 +0200 |
parents | 04be5eb73bb3 |
children | 3f30a5e7e15b |
comparison
equal
deleted
inserted
replaced
1169:e388c4f5cec5 | 1170:85555540a4e2 |
---|---|
958 | 958 |
959 def entries(**map): | 959 def entries(**map): |
960 parity = 0 | 960 parity = 0 |
961 for name, path in self.repos: | 961 for name, path in self.repos: |
962 u = ui() | 962 u = ui() |
963 u.readconfig(file(os.path.join(path, '.hg', 'hgrc'))) | 963 try: |
964 u.readconfig(file(os.path.join(path, '.hg', 'hgrc'))) | |
965 except IOError: | |
966 pass | |
964 get = u.config | 967 get = u.config |
965 | 968 |
966 url = ('/'.join([req.env["REQUEST_URI"], name]) | 969 url = ('/'.join([req.env["REQUEST_URI"], name]) |
967 .replace("//", "/")) | 970 .replace("//", "/")) |
968 | 971 |