comparison mercurial/simplemerge.py @ 7059:6a76cf980999

Improve error handling in osutil.c 1) In posix part set error when path is too long so instead of SystemError: error returned without exception set it will raise ValueError: path too long 2) In Win32 part replace generic PyErr_SetExcFromWindowsErrWithFilename by PyErr_SetFromWindowsErrWithFilename The exception returned is WinError(based on OSError) and some rudimentary errno translation is performed from Windows error range to errno module friendly range so errors like ENOENT can be handled via symbolic constant and consistently between Win32 and Posix.
author Petr Kodl <petrkodl@gmail.com>
date Wed, 01 Oct 2008 08:41:18 -0400
parents e75aab656f46
children 810ca383da9c
comparison
equal deleted inserted replaced
7058:9e6d6568bf7a 7059:6a76cf980999