D5772: hg: raise Abort on invalid path

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Sat Feb 2 01:37:18 EST 2019


yuja added a comment.


  >   > Currently, some os.path functions when opening repositories may
  >   >  raise an uncaught TypeError or ValueError if the path is invalid.
  >   
  >   What kind of "invalid"? If the path doesn't exist? Or only if the path variable is of the wrong type (not bytes? not unicode? neither?)?
  
  It's NUL byte in path string.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5772

To: indygreg, #hg-reviewers
Cc: martinvonz, yuja, mercurial-devel


More information about the Mercurial-devel mailing list