Show More
@@ -313,6 +313,28 b' class dirstatemap(object):' | |||
|
313 | 313 | else: |
|
314 | 314 | assert False, 'unreachable' |
|
315 | 315 | |
|
316 | old_entry = self._map.get(filename) | |
|
317 | self._dirs_incr(filename, old_entry) | |
|
318 | entry = DirstateItem( | |
|
319 | wc_tracked=wc_tracked, | |
|
320 | p1_tracked=p1_tracked, | |
|
321 | p2_tracked=p2_tracked, | |
|
322 | merged=merged, | |
|
323 | clean_p1=clean_p1, | |
|
324 | clean_p2=clean_p2, | |
|
325 | possibly_dirty=possibly_dirty, | |
|
326 | parentfiledata=parentfiledata, | |
|
327 | ) | |
|
328 | if entry.dm_nonnormal: | |
|
329 | self.nonnormalset.add(filename) | |
|
330 | else: | |
|
331 | self.nonnormalset.discard(filename) | |
|
332 | if entry.dm_otherparent: | |
|
333 | self.otherparentset.add(filename) | |
|
334 | else: | |
|
335 | self.otherparentset.discard(filename) | |
|
336 | self._map[filename] = entry | |
|
337 | ||
|
316 | 338 | def set_untracked(self, f): |
|
317 | 339 | """Mark a file as no longer tracked in the dirstate map""" |
|
318 | 340 | entry = self[f] |
General Comments 0
You need to be logged in to leave comments.
Login now