Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/hgweb.py @ 1473:7d66ce9895fa
make readconfig take a filename instead of a file pointer as argument
catch parse error while reading a config file
add a testcase for parse error
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 27 Oct 2005 13:40:56 -0700 |
parents | 56281e086f38 |
children | 78590fb4a82b |
comparison
equal
deleted
inserted
replaced
1472:3c909a747d7f | 1473:7d66ce9895fa |
---|---|
988 def entries(**map): | 988 def entries(**map): |
989 parity = 0 | 989 parity = 0 |
990 for name, path in self.repos: | 990 for name, path in self.repos: |
991 u = ui.ui() | 991 u = ui.ui() |
992 try: | 992 try: |
993 u.readconfig(file(os.path.join(path, '.hg', 'hgrc'))) | 993 u.readconfig(os.path.join(path, '.hg', 'hgrc')) |
994 except IOError: | 994 except IOError: |
995 pass | 995 pass |
996 get = u.config | 996 get = u.config |
997 | 997 |
998 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name]) | 998 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name]) |