Mercurial > hg
diff mercurial/localrepo.py @ 4868:192cd95c2ba8
merge with crew-stable
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Wed, 11 Jul 2007 20:15:03 -0300 |
parents | 1f3742217a76 0403b80352c9 |
children | d69b1fb111b9 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Jul 10 10:54:54 2007 -0600 +++ b/mercurial/localrepo.py Wed Jul 11 20:15:03 2007 -0300 @@ -460,15 +460,7 @@ def wwrite(self, filename, data, flags): data = self._filter("decode", filename, data) if "l" in flags: - f = self.wjoin(filename) - try: - os.unlink(f) - except OSError: - pass - d = os.path.dirname(f) - if not os.path.exists(d): - os.makedirs(d) - os.symlink(data, f) + self.wopener.symlink(data, filename) else: try: if self._link(filename):