[PATCH 3 of 3] Add a normalize() method to dirstate
Adrian Buehlmann
adrian at cadifra.com
Wed Jun 4 13:13:59 CDT 2008
On 03.06.2008 18:55, Paul Moore wrote:
> diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
> --- a/mercurial/dirstate.py
> +++ b/mercurial/dirstate.py
> @@ -31,6 +31,13 @@
> elif name == '_copymap':
> self._read()
> return self._copymap
> + elif name == '_foldmap':
> + _foldmap = {}
> + for name, value in self._map.items():
> + norm = os.path.normcase(os.path.normpath(name))
> + _foldmap[norm] = value
as discussed with Paul on IRC, above line should be:
_foldmap[norm] = name
With that, the hg rename traceback is gone; and issue1092 is still fixed.
(just for the records)
More information about the Mercurial-devel
mailing list