author | Ryan McElroy <rmcelroy@fb.com> |
Tue, 21 Mar 2017 06:50:28 -0700 | |
changeset 31555 | 18b9d9b95719 |
parent 31554 | ce4ddcda868b |
child 31556 | 66c3ae6d886c |
mercurial/vfs.py | file | annotate | diff | comparison | revisions |
--- a/mercurial/vfs.py Tue Mar 21 06:50:28 2017 -0700 +++ b/mercurial/vfs.py Tue Mar 21 06:50:28 2017 -0700 @@ -401,10 +401,7 @@ def symlink(self, src, dst): self.audit(dst) linkname = self.join(dst) - try: - os.unlink(linkname) - except OSError: - pass + util.tryunlink(linkname) util.makedirs(os.path.dirname(linkname), self.createmode)