##// END OF EJS Templates
dirstate: add a `get_entry` method to the dirstate...
marmoute -
r48897:6a78715e default
parent child Browse files
Show More
@@ -332,6 +332,13 b' class dirstate(object):'
332 return entry.state
332 return entry.state
333 return b'?'
333 return b'?'
334
334
335 def get_entry(self, path):
336 """return a DirstateItem for the associated path"""
337 entry = self._map.get(path)
338 if entry is None:
339 return DirstateItem()
340 return entry
341
335 def __contains__(self, key):
342 def __contains__(self, key):
336 return key in self._map
343 return key in self._map
337
344
General Comments 0
You need to be logged in to leave comments. Login now