diff src/org/tmatesoft/hg/internal/RevlogStream.java @ 280:35125450c804

Erroneous and slow status for working copies based on non-tip revision
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 02 Sep 2011 13:40:09 +0200
parents 6bb5e7ed051a
children b11f6a08f748
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RevlogStream.java	Wed Aug 31 23:22:18 2011 +0200
+++ b/src/org/tmatesoft/hg/internal/RevlogStream.java	Fri Sep 02 13:40:09 2011 +0200
@@ -63,6 +63,8 @@
 	}
 
 	/*package*/ DataAccess getIndexStream() {
+		// XXX may supply a hint that I'll need really few bytes of data (perhaps, at some offset) 
+		// to avoid mmap files when only few bytes are to be read (i.e. #dataLength())
 		return dataAccess.create(indexFile);
 	}
 
@@ -81,7 +83,7 @@
 		// XXX in fact, use of iterate() instead of this implementation may be quite reasonable.
 		//
 		final int indexSize = revisionCount();
-		DataAccess daIndex = getIndexStream(); // XXX may supply a hint that I'll need really few bytes of data (although at some offset)
+		DataAccess daIndex = getIndexStream();
 		if (revision == TIP) {
 			revision = indexSize - 1;
 		}