Commit bed8d08cfcb by Raphaël Gomès

rust-dirstatemap: remove additional lookup in dirstate.matches

We use the same trick as the Python implementation

Differential Revision:
parent d2da8667125
......@@ -1262,6 +1262,9 @@ class dirstate(object):
return files in the dirstate (in whatever state) filtered by match
dmap = self._map
if rustmod is not None:
dmap = self._map._rustmap
if match.always():
return dmap.keys()
files = match.files()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment