mercurial/dirstate.py
changeset 2448 b77a2ef61b81
parent 2429 6a8f7c3f7333
child 2470 fe1689273f84
equal deleted inserted replaced
2447:cd00531ecc16 2448:b77a2ef61b81
   469                     deleted.append(fn)
   469                     deleted.append(fn)
   470                     continue
   470                     continue
   471             # check the common case first
   471             # check the common case first
   472             if type_ == 'n':
   472             if type_ == 'n':
   473                 if not st:
   473                 if not st:
   474                     st = os.stat(self.wjoin(fn))
   474                     st = os.lstat(self.wjoin(fn))
   475                 if size >= 0 and (size != st.st_size
   475                 if size >= 0 and (size != st.st_size
   476                                   or (mode ^ st.st_mode) & 0100):
   476                                   or (mode ^ st.st_mode) & 0100):
   477                     modified.append(fn)
   477                     modified.append(fn)
   478                 elif time != st.st_mtime:
   478                 elif time != st.st_mtime:
   479                     lookup.append(fn)
   479                     lookup.append(fn)