Mercurial > hg-stable
diff mercurial/dirstate.py @ 47535:6025353c9c55
dirstate: no longer pass `oldstate` to the `dropfile`
The `oldstate` value come literally from `_map` so we don't need to pass tha
information along.
Differential Revision: https://phab.mercurial-scm.org/D10978
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 04 Jul 2021 02:28:08 +0200 |
parents | e53a42dce923 |
children | 8e4b9fe31334 |
line wrap: on
line diff
--- a/mercurial/dirstate.py Sun Jul 04 02:21:59 2021 +0200 +++ b/mercurial/dirstate.py Sun Jul 04 02:28:08 2021 +0200 @@ -563,8 +563,7 @@ def drop(self, f): '''Drop a file from the dirstate''' - oldstate = self[f] - if self._map.dropfile(f, oldstate): + if self._map.dropfile(f): self._dirty = True self._updatedfiles.add(f) self._map.copymap.pop(f, None) @@ -1308,7 +1307,6 @@ # general. That is much slower than simply accessing and storing the # tuple members one by one. t = dget(fn) - state = t.state mode = t[1] size = t[2] time = t[3]