Mercurial > hg
comparison mercurial/dirstate.py @ 12344:b6173aee4a47 stable
Use lexists() instead of exists() where appropriate
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 20 Sep 2010 21:46:56 +0200 |
parents | ca6cebd8734e |
children | e0ee3e822a9a |
comparison
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 |