comparison mercurial/dirstate.py @ 2448:b77a2ef61b81

replace os.stat with os.lstat in some where.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Fri, 16 Jun 2006 12:58:24 -0700
parents 6a8f7c3f7333
children fe1689273f84
comparison
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)