Mercurial > public > mercurial-scm > hg
comparison mercurial/pure/parsers.py @ 48088:418611f18fd8
dirstate-entry: use `?` for the state of entry without any tracking
This is what the dirstate use at a higher level.
Differential Revision: https://phab.mercurial-scm.org/D11525
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 29 Sep 2021 14:52:44 +0200 |
parents | 79bc60ca5946 |
children | a88ecdeee4a1 |
comparison
equal
deleted
inserted
replaced
48087:79bc60ca5946 | 48088:418611f18fd8 |
---|---|
304 | 304 |
305 XXX This "state" is a bit obscure and mostly a direct expression of the | 305 XXX This "state" is a bit obscure and mostly a direct expression of the |
306 dirstatev1 format. It would make sense to ultimately deprecate it in | 306 dirstatev1 format. It would make sense to ultimately deprecate it in |
307 favor of the more "semantic" attributes. | 307 favor of the more "semantic" attributes. |
308 """ | 308 """ |
309 if not (self._p1_tracked or self._p2_tracked or self._wc_tracked): | |
310 return b'?' | |
309 return self.v1_state() | 311 return self.v1_state() |
310 | 312 |
311 @property | 313 @property |
312 def tracked(self): | 314 def tracked(self): |
313 """True is the file is tracked in the working copy""" | 315 """True is the file is tracked in the working copy""" |