diff src/org/tmatesoft/hg/repo/HgRepository.java @ 229:1ec6b327a6ac

Scope for status reworked: explicit files or a general matcher
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 31 May 2011 05:23:07 +0200
parents 8de327242aa0
children 1792b37650f2
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgRepository.java	Fri May 27 03:01:26 2011 +0200
+++ b/src/org/tmatesoft/hg/repo/HgRepository.java	Tue May 31 05:23:07 2011 +0200
@@ -27,11 +27,8 @@
 import org.tmatesoft.hg.internal.ConfigFile;
 import org.tmatesoft.hg.internal.DataAccessProvider;
 import org.tmatesoft.hg.internal.Filter;
-import org.tmatesoft.hg.internal.RelativePathRewrite;
 import org.tmatesoft.hg.internal.RequiresFile;
 import org.tmatesoft.hg.internal.RevlogStream;
-import org.tmatesoft.hg.util.FileIterator;
-import org.tmatesoft.hg.util.FileWalker;
 import org.tmatesoft.hg.util.Path;
 import org.tmatesoft.hg.util.PathRewrite;
 import org.tmatesoft.hg.util.ProgressSupport;
@@ -217,16 +214,6 @@
 		return dataAccess;
 	}
 
-	// FIXME not sure repository shall create walkers
-	/*package-local*/ FileIterator createWorkingDirWalker() {
-		File repoRoot = repoDir.getParentFile();
-		Path.Source pathSrc = new Path.SimpleSource(new PathRewrite.Composite(new RelativePathRewrite(repoRoot), getToRepoPathHelper()));
-		// 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);
-	}
-
 	/**
 	 * Perhaps, should be separate interface, like ContentLookup
 	 * path - repository storage path (i.e. one usually with .i or .d)