# HG changeset patch # User Artem Tikhomirov # Date 1315968117 -7200 # Node ID 32890bab7209c2bbae255e81d6da7f6e16202b05 # Parent 9774f47d904dd0b0f7da22c5fc0fe7df9b93ae2d Issue 13: Report filenames as they are known in repository rather than from file system diff -r 9774f47d904d -r 32890bab7209 src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.java --- a/src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.java Wed Sep 14 04:11:37 2011 +0200 +++ b/src/org/tmatesoft/hg/repo/HgWorkingCopyStatusCollector.java Wed Sep 14 04:41:57 2011 +0200 @@ -175,14 +175,14 @@ if ((knownInDirstate = ds.known(fname)) != null) { // found in dirstate processed.add(knownInDirstate); - if (ds.checkRemoved(fname) == null) { - inspector.missing(fname); + if (ds.checkRemoved(knownInDirstate) == null) { + inspector.missing(knownInDirstate); } else { - inspector.removed(fname); + inspector.removed(knownInDirstate); } // do not report it as removed later if (collect != null) { - baseRevFiles.remove(fname); + baseRevFiles.remove(knownInDirstate); } } else { // chances are it was known in baseRevision. We may rely @@ -207,9 +207,9 @@ // modified, added, removed, clean processed.add(knownInDirstate); if (collect != null) { // need to check against base revision, not FS file - checkLocalStatusAgainstBaseRevision(baseRevFiles, collect, baseRevision, fname, f, inspector); + checkLocalStatusAgainstBaseRevision(baseRevFiles, collect, baseRevision, knownInDirstate, f, inspector); } else { - checkLocalStatusAgainstFile(fname, f, inspector); + checkLocalStatusAgainstFile(knownInDirstate, f, inspector); } } else { if (hgIgnore.isIgnored(fname)) { // hgignore shall be consulted only for non-tracked files