Mercurial > hg4j
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/com/tmate/hgkit/ll/Revlog.java Sun Dec 19 05:41:31 2010 +0100 @@ -0,0 +1,28 @@ +/** + * Copyright (c) 2010 Artem Tikhomirov + */ +package com.tmate.hgkit.ll; + +/** + * + * @author artem + */ +public abstract class Revlog { + + private final HgRepository hgRepo; + + protected Revlog(HgRepository hgRepo) { + if (hgRepo == null) { + throw new NullPointerException(); + } + this.hgRepo = hgRepo; + } + + public final HgRepository getRepo() { + return hgRepo; + } + + public interface Inspector { + void next(int compressedLen, int actualLen, int baseRevision, int linkRevision, int parent1Revision, int parent2Revision, byte[/*32*/] nodeid, byte[] data); + } +}