comparison mercurial/interfaces/dirstate.py @ 48566:934a6213fee9

dirstate: remove deprecated API Differential Revision: https://phab.mercurial-scm.org/D11953
author Rapha?l Gom?s <rgomes@octobus.net>
date Thu, 23 Dec 2021 14:49:28 +0100
parents 51cd60c0a345
children 6000f5b25c9b
comparison
equal deleted inserted replaced
48565:61fe7e17f21b 48566:934a6213fee9
64 """ 64 """
65 65
66 def pathto(f, cwd=None): 66 def pathto(f, cwd=None):
67 pass 67 pass
68 68
69 def __getitem__(key):
70 """Return the current state of key (a filename) in the dirstate.
71
72 States are:
73 n normal
74 m needs merging
75 r marked for removal
76 a marked for addition
77 ? not tracked
78 """
79
80 def __contains__(key): 69 def __contains__(key):
81 """Check if bytestring `key` is known to the dirstate.""" 70 """Check if bytestring `key` is known to the dirstate."""
82 71
83 def __iter__(): 72 def __iter__():
84 """Iterate the dirstate's contained filenames as bytestrings.""" 73 """Iterate the dirstate's contained filenames as bytestrings."""