Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 5124:a2c11f49e989
Merge with crew-stable
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 06 Aug 2007 10:57:51 +0200 |
parents | d5126a0172ba 84b10dc3dccc |
children | d316124ebbea |
comparison
equal
deleted
inserted
replaced
5123:79373ec3f27d | 5124:a2c11f49e989 |
---|---|
1310 os.symlink(src, linkname) | 1310 os.symlink(src, linkname) |
1311 except OSError, err: | 1311 except OSError, err: |
1312 raise OSError(err.errno, _('could not symlink to %r: %s') % | 1312 raise OSError(err.errno, _('could not symlink to %r: %s') % |
1313 (src, err.strerror), linkname) | 1313 (src, err.strerror), linkname) |
1314 else: | 1314 else: |
1315 f = self(self, dst, "w") | 1315 f = self(dst, "w") |
1316 f.write(src) | 1316 f.write(src) |
1317 f.close() | 1317 f.close() |
1318 | 1318 |
1319 class chunkbuffer(object): | 1319 class chunkbuffer(object): |
1320 """Allow arbitrary sized chunks of data to be efficiently read from an | 1320 """Allow arbitrary sized chunks of data to be efficiently read from an |