diff src/org/tmatesoft/hg/repo/HgInternals.java @ 425:48f993aa2f41

FIXMEs: exceptions, javadoc
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 28 Mar 2012 18:39:29 +0200
parents 9c9c442b5f2e
children 12f668401613
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgInternals.java	Wed Mar 28 15:42:15 2012 +0200
+++ b/src/org/tmatesoft/hg/repo/HgInternals.java	Wed Mar 28 18:39:29 2012 +0200
@@ -139,7 +139,7 @@
 		// Impl note: simple source is enough as files in the working dir are all unique
 		// even if they might get reused (i.e. after FileIterator#reset() and walking once again),
 		// path caching is better to be done in the code which knows that path are being reused 
-		return new FileWalker(repoRoot, pathSrc, workindDirScope);
+		return new FileWalker(repo.getContext(), repoRoot, pathSrc, workindDirScope);
 	}
 	
 	// expose otherwise package-local information primarily to use in our own o.t.hg.core package
@@ -149,8 +149,8 @@
 
 
 	// Convenient check of revision index for validity (not all negative values are wrong as long as we use negative constants)
-	public static boolean wrongRevisionIndex(int rev) { // FIXME guess, usages shall throw HgInvalidRevision. \
-		// TODO Another method to check,throw and expand TIP at once
+	public static boolean wrongRevisionIndex(int rev) {
+		// TODO Another method to check,throw and expand TIP at once (check[Revision|Revlog]Index()
 		return rev < 0 && rev != TIP && rev != WORKING_COPY && rev != BAD_REVISION && rev != NO_REVISION; 
 	}