comparison src/com/tmate/hgkit/ll/Revlog.java @ 22:603806cd2dc6

Status of local working dir against non-tip base revision
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 06 Jan 2011 03:30:20 +0100
parents e929cecae4e1
children d4fdd1845b3f
comparison
equal deleted inserted replaced
21:e929cecae4e1 22:603806cd2dc6
1 /** 1 /*
2 * Copyright (c) 2010 Artem Tikhomirov 2 * Copyright (c) 2010, 2011 Artem Tikhomirov
3 */ 3 */
4 package com.tmate.hgkit.ll; 4 package com.tmate.hgkit.ll;
5 5
6 /** 6 /**
7 * 7 *
26 26
27 public int getRevisionCount() { 27 public int getRevisionCount() {
28 return content.revisionCount(); 28 return content.revisionCount();
29 } 29 }
30 30
31 // FIXME byte[] data might be too expensive, for few usecases it may be better to have intermediate Access object (when we don't need full data
32 // instantly - e.g. calculate hash, or comparing two revisions
31 public interface Inspector { 33 public interface Inspector {
32 // XXX boolean retVal to indicate whether to continue? 34 // XXX boolean retVal to indicate whether to continue?
33 void next(int revisionNumber, int actualLen, int baseRevision, int linkRevision, int parent1Revision, int parent2Revision, byte[/*32*/] nodeid, byte[] data); 35 void next(int revisionNumber, int actualLen, int baseRevision, int linkRevision, int parent1Revision, int parent2Revision, byte[/*32*/] nodeid, byte[] data);
34 } 36 }
35 } 37 }