--- a/mercurial/osutil.c Tue Jan 27 10:10:04 2015 -0500 +++ b/mercurial/osutil.c Tue Jan 27 10:12:55 2015 -0500 @@ -319,7 +319,7 @@ if (!dir) { PyErr_SetFromErrnoWithFilename(PyExc_OSError, path); goto error_dir; - } + } list = PyList_New(0); if (!list)