##// END OF EJS Templates
scmutil: ignore EPERM at os.utime, which avoids ambiguity at closing...
FUJIWARA Katsunori -
r30321:e0ff4799 stable
parent child Browse files
Show More
@@ -1457,8 +1457,7 b' class checkambigatclosing(closewrapbase)'
1457 newstat = util.filestat(self._origfh.name)
1457 newstat = util.filestat(self._origfh.name)
1458 if newstat.isambig(oldstat):
1458 if newstat.isambig(oldstat):
1459 # stat of changed file is ambiguous to original one
1459 # stat of changed file is ambiguous to original one
1460 advanced = (oldstat.stat.st_mtime + 1) & 0x7fffffff
1460 newstat.avoidambig(self._origfh.name, oldstat)
1461 os.utime(self._origfh.name, (advanced, advanced))
1462
1461
1463 def __exit__(self, exc_type, exc_value, exc_tb):
1462 def __exit__(self, exc_type, exc_value, exc_tb):
1464 self._origfh.__exit__(exc_type, exc_value, exc_tb)
1463 self._origfh.__exit__(exc_type, exc_value, exc_tb)
General Comments 0
You need to be logged in to leave comments. Login now