# HG changeset patch # User Benoit Boissinot # Date 1220385849 -7200 # Node ID df96a0d1d79d69284931db7515d38430516eb7ba # Parent 5e1a867e5d65c059dc2a79e35769c5a99748c177 make normalize() work when cwd != repo.root diff -r 5e1a867e5d65 -r df96a0d1d79d mercurial/dirstate.py --- a/mercurial/dirstate.py Sat Aug 02 19:34:50 2008 +0400 +++ b/mercurial/dirstate.py Tue Sep 02 22:04:09 2008 +0200 @@ -349,7 +349,7 @@ def _normalize(self, path): norm_path = os.path.normcase(os.path.normpath(path)) if norm_path not in self._foldmap: - if not os.path.exists(path): + if not os.path.exists(os.path.join(self._root, path)): return path self._foldmap[norm_path] = util.fspath(path, self._root) return self._foldmap[norm_path]