Mercurial > jhg
comparison src/org/tmatesoft/hg/repo/Revlog.java @ 490:b3c16d1aede0
Refactoring: move HgRepository's implementation aspects to Internals (which is now its imlementation counterpart and primary repository class to be used by other parts of the library)
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 16 Aug 2012 17:08:34 +0200 |
parents | 7bcfbc255f48 |
children | 243202f1bda5 |
comparison
equal
deleted
inserted
replaced
489:9c0138cda59a | 490:b3c16d1aede0 |
---|---|
200 protected void rawContent(int revisionIndex, ByteChannel sink) throws HgInvalidControlFileException, CancelledException, HgInvalidRevisionException { | 200 protected void rawContent(int revisionIndex, ByteChannel sink) throws HgInvalidControlFileException, CancelledException, HgInvalidRevisionException { |
201 if (sink == null) { | 201 if (sink == null) { |
202 throw new IllegalArgumentException(); | 202 throw new IllegalArgumentException(); |
203 } | 203 } |
204 try { | 204 try { |
205 ContentPipe insp = new ContentPipe(sink, 0, repo.getContext().getLog()); | 205 ContentPipe insp = new ContentPipe(sink, 0, repo.getSessionContext().getLog()); |
206 insp.checkCancelled(); | 206 insp.checkCancelled(); |
207 content.iterate(revisionIndex, revisionIndex, true, insp); | 207 content.iterate(revisionIndex, revisionIndex, true, insp); |
208 insp.checkFailed(); | 208 insp.checkFailed(); |
209 } catch (IOException ex) { | 209 } catch (IOException ex) { |
210 HgInvalidControlFileException e = new HgInvalidControlFileException(String.format("Access to revision %d content failed", revisionIndex), ex, null); | 210 HgInvalidControlFileException e = new HgInvalidControlFileException(String.format("Access to revision %d content failed", revisionIndex), ex, null); |