hg: raise Abort on invalid path

Authored by indygreg.

Description

hg: raise Abort on invalid path

Currently, some os.path functions when opening repositories may
raise an uncaught TypeError or ValueError if the path is invalid.

Let's catch these exceptions and turn them into an Abort for
convenience.

Differential Revision: https://phab.mercurial-scm.org/D5772

Details

Committed
indygregWed, Jan 30, 8:22 PM
Differential Revision
D5772: hg: raise Abort on invalid path
Parents
rHG46ab0c6b28dc: subrepo: bytes/str cleanups on Git support
Branches
Unknown
Tags
Unknown