Mercurial > hg
comparison mercurial/dirstate.py @ 47526:8bcae9bf9e8d
dirstate-entry: add a `added` property
Lets use more semantic property instead of the `state` implementation details.
Differential Revision: https://phab.mercurial-scm.org/D10968
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 04 Jul 2021 01:44:43 +0200 |
parents | fe4641cf9b72 |
children | c6b91a9c242a |
comparison
equal
deleted
inserted
replaced
47525:fe4641cf9b72 | 47526:8bcae9bf9e8d |
---|---|
1344 ladd(fn) | 1344 ladd(fn) |
1345 elif listclean: | 1345 elif listclean: |
1346 cadd(fn) | 1346 cadd(fn) |
1347 elif t.merged: | 1347 elif t.merged: |
1348 madd(fn) | 1348 madd(fn) |
1349 elif state == b'a': | 1349 elif t.added: |
1350 aadd(fn) | 1350 aadd(fn) |
1351 elif t.removed: | 1351 elif t.removed: |
1352 radd(fn) | 1352 radd(fn) |
1353 status = scmutil.status( | 1353 status = scmutil.status( |
1354 modified, added, removed, deleted, unknown, ignored, clean | 1354 modified, added, removed, deleted, unknown, ignored, clean |