Mercurial > hg
comparison mercurial/dirstate.py @ 47531:f5b8f0b9c129
dirstate-entry: add a `tracked` property
This abstract the individual `state` value and has a clear semantic.
Differential Revision: https://phab.mercurial-scm.org/D10973
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 04 Jul 2021 02:12:54 +0200 |
parents | a1745a292885 |
children | ccbabaee5c36 |
comparison
equal
deleted
inserted
replaced
47530:a1745a292885 | 47531:f5b8f0b9c129 |
---|---|
1311 state = t.state | 1311 state = t.state |
1312 mode = t[1] | 1312 mode = t[1] |
1313 size = t[2] | 1313 size = t[2] |
1314 time = t[3] | 1314 time = t[3] |
1315 | 1315 |
1316 if not st and state in b"nma": | 1316 if not st and t.tracked: |
1317 dadd(fn) | 1317 dadd(fn) |
1318 elif state == b'n': | 1318 elif state == b'n': |
1319 if ( | 1319 if ( |
1320 size >= 0 | 1320 size >= 0 |
1321 and ( | 1321 and ( |