diff src/com/tmate/hgkit/ll/HgDataFile.java @ 21:e929cecae4e1

Refactor to move revlog content to base class
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 05 Jan 2011 04:10:28 +0100
parents 571e1b2cc3f7
children 603806cd2dc6
line wrap: on
line diff
--- a/src/com/tmate/hgkit/ll/HgDataFile.java	Tue Jan 04 02:08:25 2011 +0100
+++ b/src/com/tmate/hgkit/ll/HgDataFile.java	Wed Jan 05 04:10:28 2011 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010 Artem Tikhomirov 
+ * Copyright (c) 2010, 2011 Artem Tikhomirov 
  */
 package com.tmate.hgkit.ll;
 
@@ -14,17 +14,14 @@
  */
 public class HgDataFile extends Revlog {
 
-	private final RevlogStream content; // XXX move up to Revlog?
-
 	// absolute from repo root?
 	// slashes, unix-style?
 	// repo location agnostic, just to give info to user, not to access real storage
 	private final String path;
 	
 	/*package-local*/HgDataFile(HgRepository hgRepo, String path, RevlogStream content) {
-		super(hgRepo);
+		super(hgRepo, content);
 		this.path = path;
-		this.content = content;
 	}
 	
 	public boolean exists() {
@@ -35,10 +32,6 @@
 		return path; // hgRepo.backresolve(this) -> name?
 	}
 
-	public int getRevisionCount() {
-		return content.revisionCount();
-	}
-
 	public byte[] content() {
 		return content(TIP);
 	}