comparison src/com/tmate/hgkit/ll/Revlog.java @ 2:08db726a0fb7

Shaping out low-level Hg structures
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sun, 19 Dec 2010 05:41:31 +0100
parents
children 24bb4f365164
comparison
equal deleted inserted replaced
1:a3576694a4d1 2:08db726a0fb7
1 /**
2 * Copyright (c) 2010 Artem Tikhomirov
3 */
4 package com.tmate.hgkit.ll;
5
6 /**
7 *
8 * @author artem
9 */
10 public abstract class Revlog {
11
12 private final HgRepository hgRepo;
13
14 protected Revlog(HgRepository hgRepo) {
15 if (hgRepo == null) {
16 throw new NullPointerException();
17 }
18 this.hgRepo = hgRepo;
19 }
20
21 public final HgRepository getRepo() {
22 return hgRepo;
23 }
24
25 public interface Inspector {
26 void next(int compressedLen, int actualLen, int baseRevision, int linkRevision, int parent1Revision, int parent2Revision, byte[/*32*/] nodeid, byte[] data);
27 }
28 }