Mercurial > public > mercurial-scm > hg
diff mercurial/dirstatemap.py @ 48109:2c2788ce0257
dirstate: remove a update_file's special case for `merged` file
This case was fishy and can be dealt with by passing more accurate data a higher
level.
This clarify the API and prepare for a larger rework of the data we feeds to
the dirstate.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Oct 2021 00:00:29 +0200 |
parents | d4e715d2be0b |
children | aec5b0981c26 |
line wrap: on
line diff
--- a/mercurial/dirstatemap.py Thu Sep 30 18:00:39 2021 +0200 +++ b/mercurial/dirstatemap.py Fri Oct 01 00:00:29 2021 +0200 @@ -212,15 +212,7 @@ self.copymap.pop(filename, None) return elif merged: - # XXX might be merged and removed ? - entry = self.get(filename) - if entry is None or not entry.tracked: - # XXX mostly replicate dirstate.other parent. We should get - # the higher layer to pass us more reliable data where `merged` - # actually mean merged. Dropping this clause will show failure - # in `test-graft.t` - merged = False - clean_p2 = True + pass elif not (p1_tracked or p2_tracked) and wc_tracked: pass # file is added, nothing special to adjust elif (p1_tracked or p2_tracked) and not wc_tracked: