dirstate: two more stat -> lstat changes
authormpm@selenic.com
Fri, 09 Sep 2005 12:17:51 -0700
changeset 1230 6eac821c202c
parent 1229 2eb1cd695dd2
child 1231 effff847870f
dirstate: two more stat -> lstat changes
mercurial/dirstate.py
--- 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),