Mercurial > hg
comparison mercurial/dirstate.py @ 48121:5fc2dfb073d6
dirstatemap: rename `_rustmap` to `_map`
This match the name of the `map` for the other implementation and will make it
simpler to share code between the two.
Differential Revision: https://phab.mercurial-scm.org/D11566
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Oct 2021 17:10:24 +0200 |
parents | dcd97b082b3b |
children | 98b3eb6c1479 |
comparison
equal
deleted
inserted
replaced
48120:fe6617715464 | 48121:5fc2dfb073d6 |
---|---|
1250 warnings, | 1250 warnings, |
1251 bad, | 1251 bad, |
1252 traversed, | 1252 traversed, |
1253 dirty, | 1253 dirty, |
1254 ) = rustmod.status( | 1254 ) = rustmod.status( |
1255 self._map._rustmap, | 1255 self._map._map, |
1256 matcher, | 1256 matcher, |
1257 self._rootdir, | 1257 self._rootdir, |
1258 self._ignorefiles(), | 1258 self._ignorefiles(), |
1259 self._checkexec, | 1259 self._checkexec, |
1260 self._lastnormaltime, | 1260 self._lastnormaltime, |
1450 """ | 1450 """ |
1451 return files in the dirstate (in whatever state) filtered by match | 1451 return files in the dirstate (in whatever state) filtered by match |
1452 """ | 1452 """ |
1453 dmap = self._map | 1453 dmap = self._map |
1454 if rustmod is not None: | 1454 if rustmod is not None: |
1455 dmap = self._map._rustmap | 1455 dmap = self._map._map |
1456 | 1456 |
1457 if match.always(): | 1457 if match.always(): |
1458 return dmap.keys() | 1458 return dmap.keys() |
1459 files = match.files() | 1459 files = match.files() |
1460 if match.isexact(): | 1460 if match.isexact(): |