branch | stable |
changeset 11675 | f92f8921a5cc |
parent 11600 | 76454cbc11e4 |
child 11676 | e4357c214bf1 |
--- a/mercurial/dispatch.py Thu Jul 22 23:18:38 2010 +0900 +++ b/mercurial/dispatch.py Sat Jul 24 00:38:08 2010 +0200 @@ -366,7 +366,12 @@ os.chdir(cwd[-1]) # read the local repository .hgrc into a local ui object - path = cmdutil.findrepo(os.getcwd()) or "" + try: + wd = os.getcwd() + except OSError, e: + raise util.Abort(_("error getting current working directory: %s") % + e.strerror) + path = cmdutil.findrepo(wd) or "" if not path: lui = ui else: