Commits

Yuya Nishihara committed 6f74fe9

rename: test path of repository root case-insensitively on Windows

Comments (0)

Files changed (1)

tortoisehg/hgqt/rename.py

             return
         fullpath = util.normpath(unicode(fullpath))
         pathprefix = util.normpath(hglib.tounicode(self.root)) + '/'
-        if not fullpath.startswith(pathprefix):
+        if not os.path.normcase(fullpath).startswith(os.path.normcase(pathprefix)):
             return
         return fullpath[len(pathprefix):]