comparison hgext/bugzilla.py @ 6676:33045179d079

Add a new function, fspath The function, given a relative filename and a root, returns the filename modified to use the case actually stored in the filesystem (or None if the file does not exist). The returned name is relative to the root, but retains the path separators used in the input path. (This is not strictly necessary, but retaining the path separators minimises misleading test suite failures). A win32-specific implementation (using win32api.FindFiles) is possible, but it has not been implemented as testing seems to demonstrate that the win32-specific code is not significantly faster (thanks to the caching of results in the generic code).
author Paul Moore <p.f.moore@gmail.com>
date Fri, 06 Jun 2008 19:23:23 +0100
parents 962eb403165b
children f6c00b17387c
comparison
equal deleted inserted replaced
6675:03a836ca6fde 6676:33045179d079