mercurial/util.py
changeset 5094 a2c11f49e989
parent 5068 d5126a0172ba
parent 5093 84b10dc3dccc
child 5141 d316124ebbea
equal deleted inserted replaced
5082:79373ec3f27d 5094: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