comparison src/org/tmatesoft/hg/repo/Revlog.java @ 197:3a7696fb457c

Investigate optimization options to allow fast processing of huge repositories. Fix defect in StatusCollector that lead to wrong result comparing first revision to empty repo (-1 to 0), due to same TIP constant value
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 19 Apr 2011 03:49:29 +0200
parents e5407b5a586a
children 114c9fe7b643
comparison
equal deleted inserted replaced
196:e2115da4cf6a 197:3a7696fb457c
238 if (parent2Revision != -1) { // revlog of DataAccess.java has p2 set when p1 is -1 238 if (parent2Revision != -1) { // revlog of DataAccess.java has p2 set when p1 is -1
239 secondParent.put(nid, sequentialRevisionNodeids[parent2Revision]); 239 secondParent.put(nid, sequentialRevisionNodeids[parent2Revision]);
240 } 240 }
241 } 241 }
242 }; 242 };
243 stream.iterate(0, -1, false, insp); 243 stream.iterate(0, TIP, false, insp);
244 } 244 }
245 245
246 public Set<Nodeid> allNodes() { 246 public Set<Nodeid> allNodes() {
247 return Collections.unmodifiableSet(allNodes); 247 return Collections.unmodifiableSet(allNodes);
248 } 248 }