mercurial/dirstate.py
branchstable
changeset 12344 b6173aee4a47
parent 11769 ca6cebd8734e
child 12345 e0ee3e822a9a
equal deleted inserted replaced
12343:28642f7fc2cf 12344:b6173aee4a47
   360 
   360 
   361     def _normalize(self, path, knownpath):
   361     def _normalize(self, path, knownpath):
   362         norm_path = os.path.normcase(path)
   362         norm_path = os.path.normcase(path)
   363         fold_path = self._foldmap.get(norm_path, None)
   363         fold_path = self._foldmap.get(norm_path, None)
   364         if fold_path is None:
   364         if fold_path is None:
   365             if knownpath or not os.path.exists(os.path.join(self._root, path)):
   365             if knownpath or not os.path.lexists(os.path.join(self._root, path)):
   366                 fold_path = path
   366                 fold_path = path
   367             else:
   367             else:
   368                 fold_path = self._foldmap.setdefault(norm_path,
   368                 fold_path = self._foldmap.setdefault(norm_path,
   369                                 util.fspath(path, self._root))
   369                                 util.fspath(path, self._root))
   370         return fold_path
   370         return fold_path