} catch (IOException ex) {
// not in finally because I don't want to loose exception from fos.close()
closeQuietly(fis, from);
closeQuietly(fos, to);
String m = String.format("Failed to copy %s to %s", from.getName(), to.getName());
throw new HgIOException(m, ex, from);
}
/* Copy of cpython's 00changelog.d, 20Mb+
* Linux&Windows: 300-400 ms,
* Windows uncached run: 1.6 seconds
*/