Mercurial > jhg
diff src/org/tmatesoft/hg/repo/HgInternals.java @ 237:6e1373b54e9b
Allow access to working copy content through HgDataFile. Give access to repository's working dir
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 10 Jun 2011 04:35:21 +0200 |
parents | 1ec6b327a6ac |
children | 7af843ecc378 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgInternals.java Thu Jun 09 06:13:43 2011 +0200 +++ b/src/org/tmatesoft/hg/repo/HgInternals.java Fri Jun 10 04:35:21 2011 +0200 @@ -95,7 +95,7 @@ @Experimental(reason="Don't want to expose io.File from HgRepository; need to create FileIterator for working dir. Need a place to keep that code") /*package-local*/ FileIterator createWorkingDirWalker(Path.Matcher workindDirScope) { - File repoRoot = repo.getRepositoryRoot().getParentFile(); + File repoRoot = repo.getWorkingDir(); Path.Source pathSrc = new Path.SimpleSource(new PathRewrite.Composite(new RelativePathRewrite(repoRoot), repo.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),