changeset 36948 | 0585337ea787 |
parent 36781 | ffa3026d4196 |
child 37095 | e24802ea8dbd |
--- a/mercurial/posix.py Wed Mar 14 11:16:45 2018 -0700 +++ b/mercurial/posix.py Wed Mar 14 15:39:28 2018 -0400 @@ -264,7 +264,8 @@ # already exists. target = 'checklink-target' try: - open(os.path.join(cachedir, target), 'w').close() + fullpath = os.path.join(cachedir, target) + open(fullpath, 'w').close() except IOError as inst: if inst[0] == errno.EACCES: # If we can't write to cachedir, just pretend