comparison src/org/tmatesoft/hg/internal/RevlogStreamWriter.java @ 532:688c1ab113bb

Introduce explicit reference to base patch in bundle's group element, use it when cloning to fix defect when few revisions list null,null parents
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 23 Jan 2013 19:14:15 +0100
parents 0f6fa88e2162
children e6f72c9829a6
comparison
equal deleted inserted replaced
531:95c2f43008bd 532:688c1ab113bb
24 24
25 import org.tmatesoft.hg.core.Nodeid; 25 import org.tmatesoft.hg.core.Nodeid;
26 26
27 /** 27 /**
28 * 28 *
29 * TODO check if index is too big and split into index+data
30 *
29 * @author Artem Tikhomirov 31 * @author Artem Tikhomirov
30 * @author TMate Software Ltd. 32 * @author TMate Software Ltd.
31 */ 33 */
32 public class RevlogStreamWriter { 34 public class RevlogStreamWriter {
33 35
46 } 48 }
47 49
48 public HeaderWriter offset(long offset) { 50 public HeaderWriter offset(long offset) {
49 this.offset = offset; 51 this.offset = offset;
50 return this; 52 return this;
53 }
54
55 public int baseRevision() {
56 return baseRev;
51 } 57 }
52 58
53 public HeaderWriter baseRevision(int baseRevision) { 59 public HeaderWriter baseRevision(int baseRevision) {
54 this.baseRev = baseRevision; 60 this.baseRev = baseRevision;
55 return this; 61 return this;