Mercurial > hg
changeset 12636:c24215aa7e69
dispatch: remove superfluous try/except when reading local ui config
ui.readconfig() already handles IOError in this case.
author | Brodie Rao <brodie@bitheap.org> |
---|---|
date | Mon, 04 Oct 2010 14:26:38 -0500 |
parents | 45ef87f41f98 |
children | 42ca7aef28d3 |
files | mercurial/dispatch.py |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dispatch.py Mon Oct 04 14:26:37 2010 -0500 +++ b/mercurial/dispatch.py Mon Oct 04 14:26:38 2010 -0500 @@ -419,11 +419,8 @@ if not path: lui = ui else: - try: - lui = ui.copy() - lui.readconfig(os.path.join(path, ".hg", "hgrc")) - except IOError: - pass + lui = ui.copy() + lui.readconfig(os.path.join(path, ".hg", "hgrc")) if rpath: path = lui.expandpath(rpath[-1])