Mercurial > jhg
comparison 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 |
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 * Extends Revlog/uses RevlogStream? | |
8 * ? name:HgFileNode? | |
9 * @author artem | |
10 */ | |
11 public class HgDataFile extends Revlog { | |
12 | |
13 private final String path; | |
14 | |
15 /*package-local*/HgDataFile(HgRepository hgRepo) { | |
16 super(hgRepo); | |
17 } | |
18 | |
19 public String getPath() { | |
20 return path; // hgRepo.backresolve(this) -> name? | |
21 } | |
22 | |
23 private static final int TIP = -2; | |
24 | |
25 public byte[] content() { | |
26 return content(TIP); | |
27 } | |
28 | |
29 public byte[] content(int revision) { | |
30 throw HgRepository.notImplemented(); | |
31 } | |
32 } |