Mercurial > hg
comparison mercurial/dirstatemap.py @ 47668:724a77979b47
dirstatemap: use `set_possibly_dirty` in `clearambiguoustimes`
lets put this new method to use
Differential Revision: https://phab.mercurial-scm.org/D11121
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 19 Jul 2021 06:20:00 +0200 |
parents | b8013cb71ef3 |
children | 0efaa1bbad2b |
comparison
equal
deleted
inserted
replaced
47667:d06ced90c80f | 47668:724a77979b47 |
---|---|
259 | 259 |
260 def clearambiguoustimes(self, files, now): | 260 def clearambiguoustimes(self, files, now): |
261 for f in files: | 261 for f in files: |
262 e = self.get(f) | 262 e = self.get(f) |
263 if e is not None and e.need_delay(now): | 263 if e is not None and e.need_delay(now): |
264 self._map[f] = DirstateItem( | 264 e.set_possibly_dirty() |
265 e.state, e.mode, e.size, AMBIGUOUS_TIME | |
266 ) | |
267 self.nonnormalset.add(f) | 265 self.nonnormalset.add(f) |
268 | 266 |
269 def nonnormalentries(self): | 267 def nonnormalentries(self): |
270 '''Compute the nonnormal dirstate entries from the dmap''' | 268 '''Compute the nonnormal dirstate entries from the dmap''' |
271 try: | 269 try: |