final AtomicInteger files = new AtomicInteger(0);
final AtomicInteger folders = new AtomicInteger(0);
final List<String> fullPaths = new ArrayList<String>();
final Set<AnyObjectId> ids = new HashSet<AnyObjectId>();
assertTrue(TreeUtils.visit(new FileRepository(testRepo),
commit.getTree(), new ITreeVisitor() {
public boolean accept(FileMode mode, String path,
String name, AnyObjectId id) {
if (mode == REGULAR_FILE)
files.incrementAndGet();