##// END OF EJS Templates
vfs: ignore EPERM at os.utime, which avoids ambiguity at renaming (issue5418)...
FUJIWARA Katsunori -
r30320:bff5ccbe stable
parent child Browse files
Show More
@@ -390,8 +390,7 b' class abstractvfs(object):'
390 newstat = util.filestat(dstpath)
390 newstat = util.filestat(dstpath)
391 if newstat.isambig(oldstat):
391 if newstat.isambig(oldstat):
392 # stat of renamed file is ambiguous to original one
392 # stat of renamed file is ambiguous to original one
393 advanced = (oldstat.stat.st_mtime + 1) & 0x7fffffff
393 newstat.avoidambig(dstpath, oldstat)
394 os.utime(dstpath, (advanced, advanced))
395 return ret
394 return ret
396 return util.rename(self.join(src), dstpath)
395 return util.rename(self.join(src), dstpath)
397
396
General Comments 0
You need to be logged in to leave comments. Login now