comparison src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.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 4817d4ccc50e
comparison
equal deleted inserted replaced
236:883300108179 237:6e1373b54e9b
420 } 420 }
421 } 421 }
422 // final Path[] dirs = f.toArray(new Path[d.size()]); 422 // final Path[] dirs = f.toArray(new Path[d.size()]);
423 if (d.isEmpty()) { 423 if (d.isEmpty()) {
424 final Path[] files = f.toArray(new Path[f.size()]); 424 final Path[] files = f.toArray(new Path[f.size()]);
425 FileIterator fi = new FileListIterator(hgRepo.getRepositoryRoot().getParentFile(), files); 425 FileIterator fi = new FileListIterator(hgRepo.getWorkingDir(), files);
426 return new HgWorkingCopyStatusCollector(hgRepo, fi); 426 return new HgWorkingCopyStatusCollector(hgRepo, fi);
427 } 427 }
428 // 428 //
429 429
430 //FileIterator fi = file.isDirectory() ? new DirFileIterator(hgRepo, file) : new FileListIterator(, file); 430 //FileIterator fi = file.isDirectory() ? new DirFileIterator(hgRepo, file) : new FileListIterator(, file);