# HG changeset patch # User Shun-ichi GOTO # Date 1247143159 -32400 # Node ID 3d456bf32f18334539b915297dd127d81af7ecf3 # Parent 5e4654f5522dc44dddd18c5e473fa2ecc84086c0 Use os.path.split() for MBCS with win32mbcs extension. diff --git a/mercurial/windows.py b/mercurial/windows.py --- a/mercurial/windows.py +++ b/mercurial/windows.py @@ -209,11 +209,9 @@ dircache = {} # dirname -> filename -> status | None if file does not exist for nf in files: nf = ncase(nf) - pos = nf.rfind(sep) - if pos == -1: - dir, base = '.', nf - else: - dir, base = nf[:pos+1], nf[pos+1:] + dir, base = os.path.split(nf) + if not dir: + dir = '.' cache = dircache.get(dir, None) if cache is None: try: