mercurial/pure/parsers.py
changeset 47890 3853e6ee160d
parent 47686 e43128ee436f
child 47895 22c39f8acf78
equal deleted inserted replaced
47889:6614ab9f061d 47890:3853e6ee160d
    86 
    86 
    87         This means the next status call will have to actually check its content
    87         This means the next status call will have to actually check its content
    88         to make sure it is correct.
    88         to make sure it is correct.
    89         """
    89         """
    90         self._mtime = AMBIGUOUS_TIME
    90         self._mtime = AMBIGUOUS_TIME
       
    91 
       
    92     def set_untracked(self):
       
    93         """mark a file as untracked in the working copy
       
    94 
       
    95         This will ultimately be called by command like `hg remove`.
       
    96         """
       
    97         # backup the previous state (useful for merge)
       
    98         size = 0
       
    99         if self.merged:  # merge
       
   100             size = NONNORMAL
       
   101         elif self.from_p2:
       
   102             size = FROM_P2
       
   103         self._state = b'r'
       
   104         self._mode = 0
       
   105         self._size = size
       
   106         self._mtime = 0
    91 
   107 
    92     def __getitem__(self, idx):
   108     def __getitem__(self, idx):
    93         if idx == 0 or idx == -4:
   109         if idx == 0 or idx == -4:
    94             msg = b"do not use item[x], use item.state"
   110             msg = b"do not use item[x], use item.state"
    95             util.nouideprecwarn(msg, b'6.0', stacklevel=2)
   111             util.nouideprecwarn(msg, b'6.0', stacklevel=2)