comparison src/org/tmatesoft/hg/repo/HgDataFile.java @ 129:645829962785

core.Cset renamed to HgChangeset; repo.Changeset moved into HgChangelog
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 16 Feb 2011 20:32:29 +0100
parents b1d6208fb517
children 4a948ec83980
comparison
equal deleted inserted replaced
128:44b97930570c 129:645829962785
145 byte[] rv = new byte[data.length - toSkip]; 145 byte[] rv = new byte[data.length - toSkip];
146 System.arraycopy(data, toSkip, rv, 0, rv.length); 146 System.arraycopy(data, toSkip, rv, 0, rv.length);
147 return rv; 147 return rv;
148 } 148 }
149 149
150 public void history(Changeset.Inspector inspector) { 150 public void history(HgChangelog.Inspector inspector) {
151 history(0, content.revisionCount() - 1, inspector); 151 history(0, content.revisionCount() - 1, inspector);
152 } 152 }
153 153
154 public void history(int start, int end, Changeset.Inspector inspector) { 154 public void history(int start, int end, HgChangelog.Inspector inspector) {
155 if (!exists()) { 155 if (!exists()) {
156 throw new IllegalStateException("Can't get history of invalid repository file node"); 156 throw new IllegalStateException("Can't get history of invalid repository file node");
157 } 157 }
158 final int last = content.revisionCount() - 1; 158 final int last = content.revisionCount() - 1;
159 if (start < 0 || start > last) { 159 if (start < 0 || start > last) {