dirstateBuilder.serialize(dirstateFileChannel);
dirstateFileChannel.close();
} catch (IOException ex) {
throw new HgIOException("Can't write down new directory state", ex, dirstateFile);
}
progress.worked(1);
cancellation.checkCancelled();
String branchName = repo.getChangelog().range(coRevision, coRevision).get(0).branch();
assert branchName != null;
File branchFile = internalRepo.getRepositoryFile(Branch);
if (HgRepository.DEFAULT_BRANCH_NAME.equals(branchName)) {