added = new LinkedHashMap<Path, Record>();
removed = new LinkedHashMap<Path, Record>();
merged = new LinkedHashMap<Path, Record>();
DirstateReader dirstateReader = new DirstateReader(repo, pathPool);
dirstateReader.readInto(new Inspector() {
public boolean next(EntryKind kind, Record r) {
if (canonicalPathRewrite != null) {
Path canonicalPath = pathPool.path(canonicalPathRewrite.rewrite(r.name()));
if (canonicalPath != r.name()) { // == as they come from the same pool