Mercurial > public > mercurial-scm > hg-stable
diff mercurial/pure/parsers.py @ 48155:21542d4cb568
dirstate-item: introduce a `p1_tracked` property
It is useful to simplify various conditional that use `any_tracked and not
added`.
Differential Revision: https://phab.mercurial-scm.org/D11586
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Oct 2021 04:07:21 +0200 |
parents | fb3b41d583c2 |
children | 6ac2b417d5d7 |
line wrap: on
line diff
--- a/mercurial/pure/parsers.py Fri Oct 01 04:04:09 2021 +0200 +++ b/mercurial/pure/parsers.py Fri Oct 01 04:07:21 2021 +0200 @@ -301,6 +301,11 @@ return True @property + def p1_tracked(self): + """True if the file is tracked in the first parent manifest""" + return self._p1_tracked + + @property def p2_info(self): """True if the file needed to merge or apply any input from p2