Mercurial > hg4j
comparison src/org/tmatesoft/hg/internal/RevlogStreamWriter.java @ 591:e447384f3771
CommitFacility as internal class; refactored infrastructure around internals (access to RevlogStream)
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Tue, 30 Apr 2013 18:55:42 +0200 |
parents | 7f5998a9619d |
children | e1b29756f901 |
comparison
equal
deleted
inserted
replaced
590:8cbc2a883d95 | 591:e447384f3771 |
---|---|
42 private byte[] lastEntryContent; | 42 private byte[] lastEntryContent; |
43 private Nodeid lastEntryRevision; | 43 private Nodeid lastEntryRevision; |
44 private IntMap<Nodeid> revisionCache = new IntMap<Nodeid>(32); | 44 private IntMap<Nodeid> revisionCache = new IntMap<Nodeid>(32); |
45 private RevlogStream revlogStream; | 45 private RevlogStream revlogStream; |
46 | 46 |
47 public RevlogStreamWriter(SessionContext ctx, RevlogStream stream) { | 47 public RevlogStreamWriter(SessionContext.Source ctxSource, RevlogStream stream) { |
48 assert ctx != null; | 48 assert ctxSource != null; |
49 assert stream != null; | 49 assert stream != null; |
50 | 50 |
51 revlogDataZip = new RevlogCompressor(ctx); | 51 revlogDataZip = new RevlogCompressor(ctxSource.getSessionContext()); |
52 revlogStream = stream; | 52 revlogStream = stream; |
53 } | 53 } |
54 | 54 |
55 /** | 55 /** |
56 * @return nodeid of added revision | 56 * @return nodeid of added revision |