Mercurial > hg
changeset 1230:6eac821c202c
dirstate: two more stat -> lstat changes
author | mpm@selenic.com |
---|---|
date | Fri, 09 Sep 2005 12:17:51 -0700 |
parents | 2eb1cd695dd2 |
children | effff847870f |
files | mercurial/dirstate.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dirstate.py Fri Sep 09 11:47:13 2005 -0700 +++ b/mercurial/dirstate.py Fri Sep 09 12:17:51 2005 -0700 @@ -140,7 +140,7 @@ if state == "r": self.map[f] = ('r', 0, 0, 0) else: - s = os.stat(os.path.join(self.root, f)) + s = os.lstat(os.path.join(self.root, f)) st_size = kw.get('st_size', s.st_size) st_mtime = kw.get('st_mtime', s.st_mtime) self.map[f] = (state, s.st_mode, st_size, st_mtime) @@ -272,7 +272,7 @@ for ff in util.unique(files): f = os.path.join(self.root, ff) try: - st = os.stat(f) + st = os.lstat(f) except OSError, inst: if ff not in dc: self.ui.warn('%s: %s\n' % ( util.pathto(self.getcwd(), ff),