changeset 49305 | 53e9422a9b45 |
parent 49302 | ee4537e365c8 |
child 49306 | 2e726c934fcd |
--- a/mercurial/posix.py Tue May 31 16:54:58 2022 +0200 +++ b/mercurial/posix.py Tue May 31 21:16:17 2022 +0200 @@ -329,11 +329,9 @@ except OSError: unlink(name) return True - except OSError as inst: + except FileExistsError: # link creation might race, try again - if inst.errno == errno.EEXIST: - continue - raise + continue finally: if fd is not None: fd.close()