Mercurial > hg4j
comparison src/org/tmatesoft/hg/internal/FileContentSupplier.java @ 654:12a4f60ea972
1) Console push tool. 2) Pass class to blame into FileUtils
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 03 Jul 2013 15:11:40 +0200 |
parents | 7c0d2ce340b8 |
children |
comparison
equal
deleted
inserted
replaced
653:629a7370554c | 654:12a4f60ea972 |
---|---|
60 buffer.clear(); | 60 buffer.clear(); |
61 } | 61 } |
62 } catch (IOException ex) { | 62 } catch (IOException ex) { |
63 throw new HgIOException("Failed to get content of the file", ex, file); | 63 throw new HgIOException("Failed to get content of the file", ex, file); |
64 } finally { | 64 } finally { |
65 new FileUtils(ctx.getLog()).closeQuietly(fis); | 65 new FileUtils(ctx.getLog(), this).closeQuietly(fis); |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 public int serializeLength() { | 69 public int serializeLength() { |
70 return Internals.ltoi(file.length()); | 70 return Internals.ltoi(file.length()); |