Mercurial > jhg
diff src/com/tmate/hgkit/ll/HgDataFile.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/HgDataFile.java Sun Dec 19 05:41:31 2010 +0100 @@ -0,0 +1,32 @@ +/** + * Copyright (c) 2010 Artem Tikhomirov + */ +package com.tmate.hgkit.ll; + +/** + * Extends Revlog/uses RevlogStream? + * ? name:HgFileNode? + * @author artem + */ +public class HgDataFile extends Revlog { + + private final String path; + + /*package-local*/HgDataFile(HgRepository hgRepo) { + super(hgRepo); + } + + public String getPath() { + return path; // hgRepo.backresolve(this) -> name? + } + + private static final int TIP = -2; + + public byte[] content() { + return content(TIP); + } + + public byte[] content(int revision) { + throw HgRepository.notImplemented(); + } +}