Mercurial > hg
comparison mercurial/pure/parsers.py @ 48113:e2da3ec94169
dirstate-item: point out that `merged` is set only with p1_tracked
This is currently True, and we will use this fact to simplify the API in the
next commit. However, we add this assertion first to validate that this is
True in the whole test-suite.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 30 Sep 2021 18:07:31 +0200 |
parents | fabf687df0ff |
children | 38488d488ec1 |
comparison
equal
deleted
inserted
replaced
48112:fabf687df0ff | 48113:e2da3ec94169 |
---|---|
100 ): | 100 ): |
101 if merged and (clean_p1 or clean_p2): | 101 if merged and (clean_p1 or clean_p2): |
102 msg = b'`merged` argument incompatible with `clean_p1`/`clean_p2`' | 102 msg = b'`merged` argument incompatible with `clean_p1`/`clean_p2`' |
103 raise error.ProgrammingError(msg) | 103 raise error.ProgrammingError(msg) |
104 | 104 |
105 assert not (merged and not p1_tracked) | |
105 self._wc_tracked = wc_tracked | 106 self._wc_tracked = wc_tracked |
106 self._p1_tracked = p1_tracked | 107 self._p1_tracked = p1_tracked |
107 self._p2_tracked = p2_tracked | 108 self._p2_tracked = p2_tracked |
108 self._merged = merged | 109 self._merged = merged |
109 self._clean_p1 = clean_p1 | 110 self._clean_p1 = clean_p1 |