view 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 source
/**
 * 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();
	}
}