mercurial/dirstate.py
changeset 48119 dcd97b082b3b
parent 48101 c87844960a35
child 48133 5fc2dfb073d6
equal deleted inserted replaced
48118:82e142b9ad18 48119:dcd97b082b3b
   325 
   325 
   326         XXX The "state" is a bit obscure to be in the "public" API. we should
   326         XXX The "state" is a bit obscure to be in the "public" API. we should
   327         consider migrating all user of this to going through the dirstate entry
   327         consider migrating all user of this to going through the dirstate entry
   328         instead.
   328         instead.
   329         """
   329         """
       
   330         msg = b"don't use dirstate[file], use dirstate.get_entry(file)"
       
   331         util.nouideprecwarn(msg, b'6.1', stacklevel=2)
   330         entry = self._map.get(key)
   332         entry = self._map.get(key)
   331         if entry is not None:
   333         if entry is not None:
   332             return entry.state
   334             return entry.state
   333         return b'?'
   335         return b'?'
   334 
   336