diff src/org/tmatesoft/hg/repo/HgInternals.java @ 431:12f668401613

FIXMEs: awkward API refactored, what need to be internal got hidden; public aspects got captured in slim interfaces
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 29 Mar 2012 20:54:04 +0200
parents 48f993aa2f41
children 6865eb742883
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgInternals.java	Thu Mar 29 18:48:23 2012 +0200
+++ b/src/org/tmatesoft/hg/repo/HgInternals.java	Thu Mar 29 20:54:04 2012 +0200
@@ -33,7 +33,6 @@
 import org.tmatesoft.hg.util.FileIterator;
 import org.tmatesoft.hg.util.FileWalker;
 import org.tmatesoft.hg.util.Path;
-import org.tmatesoft.hg.util.PathPool;
 import org.tmatesoft.hg.util.PathRewrite;
 
 
@@ -56,7 +55,7 @@
 	}
 
 	public HgDirstate getDirstate() throws HgInvalidControlFileException {
-		return repo.loadDirstate(new PathPool(new PathRewrite.Empty()));
+		return repo.loadDirstate(new Path.SimpleSource());
 	}
 	
 	// tests
@@ -70,7 +69,7 @@
 				}
 			};
 		}
-		HgDirstate ds = new HgDirstate(repo, new File(repo.getRepositoryRoot(), "dirstate"), new PathPool(new PathRewrite.Empty()), canonicalPath);
+		HgDirstate ds = new HgDirstate(repo, new File(repo.getRepositoryRoot(), "dirstate"), new Path.SimpleSource(), canonicalPath);
 		ds.read(repo.getImplHelper().buildFileNameEncodingHelper());
 		return ds;
 	}