comparison mercurial/dirstatemap.py @ 47514:559aee84b889

dirstate-entry: add a `from_p2` property Lets start to define and use more semantic property. Differential Revision: https://phab.mercurial-scm.org/D10956
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 03 Jul 2021 04:26:28 +0200
parents 10e740292dff
children abed645b8e96
comparison
equal deleted inserted replaced
47513:10e740292dff 47514:559aee84b889
171 # would be nice. 171 # would be nice.
172 if entry is not None: 172 if entry is not None:
173 # backup the previous state 173 # backup the previous state
174 if entry.merged: # merge 174 if entry.merged: # merge
175 size = NONNORMAL 175 size = NONNORMAL
176 elif entry[0] == b'n' and entry[2] == FROM_P2: # other parent 176 elif entry[0] == b'n' and entry.from_p2:
177 size = FROM_P2 177 size = FROM_P2
178 self.otherparentset.add(f) 178 self.otherparentset.add(f)
179 if size == 0: 179 if size == 0:
180 self.copymap.pop(f, None) 180 self.copymap.pop(f, None)
181 181