Show More
@@ -140,7 +140,7 b' class dirstate:' | |||||
140 | if state == "r": |
|
140 | if state == "r": | |
141 | self.map[f] = ('r', 0, 0, 0) |
|
141 | self.map[f] = ('r', 0, 0, 0) | |
142 | else: |
|
142 | else: | |
143 | s = os.stat(os.path.join(self.root, f)) |
|
143 | s = os.lstat(os.path.join(self.root, f)) | |
144 | st_size = kw.get('st_size', s.st_size) |
|
144 | st_size = kw.get('st_size', s.st_size) | |
145 | st_mtime = kw.get('st_mtime', s.st_mtime) |
|
145 | st_mtime = kw.get('st_mtime', s.st_mtime) | |
146 | self.map[f] = (state, s.st_mode, st_size, st_mtime) |
|
146 | self.map[f] = (state, s.st_mode, st_size, st_mtime) | |
@@ -272,7 +272,7 b' class dirstate:' | |||||
272 | for ff in util.unique(files): |
|
272 | for ff in util.unique(files): | |
273 | f = os.path.join(self.root, ff) |
|
273 | f = os.path.join(self.root, ff) | |
274 | try: |
|
274 | try: | |
275 | st = os.stat(f) |
|
275 | st = os.lstat(f) | |
276 | except OSError, inst: |
|
276 | except OSError, inst: | |
277 | if ff not in dc: self.ui.warn('%s: %s\n' % ( |
|
277 | if ff not in dc: self.ui.warn('%s: %s\n' % ( | |
278 | util.pathto(self.getcwd(), ff), |
|
278 | util.pathto(self.getcwd(), ff), |
General Comments 0
You need to be logged in to leave comments.
Login now