Mercurial > hg
diff mercurial/pure/parsers.py @ 47515:c94d3ff46fd5
dirstate-entry: add a `removed` property
Lets start to define and use more semantic property.
Differential Revision: https://phab.mercurial-scm.org/D10957
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 03 Jul 2021 04:18:54 +0200 |
parents | 559aee84b889 |
children | b8ffe85e399b |
line wrap: on
line diff
--- a/mercurial/pure/parsers.py Sat Jul 03 04:26:28 2021 +0200 +++ b/mercurial/pure/parsers.py Sat Jul 03 04:18:54 2021 +0200 @@ -99,6 +99,11 @@ """ return self._size == FROM_P2 + @property + def removed(self): + """True if the file has been removed""" + return self._state == b'r' + def v1_state(self): """return a "state" suitable for v1 serialization""" return self._state