public static void cp(CommandRepo fromRepo, CommandRepo toRepo, String filter) throws Exception {
FixedIndexedRepo sourceRepo = fromRepo.repo();
FixedIndexedRepo targetRepo = toRepo.repo();
sourceRepo.reset();
targetRepo.reset();
Requirement requirement = getRequirement(filter);
List<Resource> resources = findResources(sourceRepo, requirement);
for (Resource resource : resources) {