Mercurial > hg
comparison mercurial/dirstatemap.py @ 47686:e43128ee436f
dirstate-item: introduce a `dm_otherparent` property
See inline documentation for details.
Differential Revision: https://phab.mercurial-scm.org/D11124
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 14 Jul 2021 22:06:13 +0200 |
parents | 265cdfaad372 |
children | e59bd6723f2f |
comparison
equal
deleted
inserted
replaced
47685:265cdfaad372 | 47686:e43128ee436f |
---|---|
197 if old_entry is None and "_alldirs" in self.__dict__: | 197 if old_entry is None and "_alldirs" in self.__dict__: |
198 self._alldirs.addpath(f) | 198 self._alldirs.addpath(f) |
199 e = self._map[f] = DirstateItem(state, mode, size, mtime) | 199 e = self._map[f] = DirstateItem(state, mode, size, mtime) |
200 if e.dm_nonnormal: | 200 if e.dm_nonnormal: |
201 self.nonnormalset.add(f) | 201 self.nonnormalset.add(f) |
202 if size == FROM_P2: | 202 if e.dm_otherparent: |
203 self.otherparentset.add(f) | 203 self.otherparentset.add(f) |
204 | 204 |
205 def removefile(self, f, in_merge=False): | 205 def removefile(self, f, in_merge=False): |
206 """ | 206 """ |
207 Mark a file as removed in the dirstate. | 207 Mark a file as removed in the dirstate. |