[Git] IDEA-59587 again. Moved New files are marked as not changed.
authorKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Wed, 18 May 2011 15:16:14 +0000 (19:16 +0400)
committerKirill Likhodedov <kirill.likhodedov@jetbrains.com>
Thu, 19 May 2011 07:42:31 +0000 (11:42 +0400)
commitf8c80c6bc09ddd05522f2a1eb17b3df83e5dfa17
treec19ff87f582475c2f160b68b5bafe4c81c9a9aec
parentdb4c73f73725bbbfe6349e0e4e555530efa2ef1f
[Git] IDEA-59587 again. Moved New files are marked as not changed.

Root cause: comparing VirtualFiles when identifying who is the ancestor, while VirtualFile has changed due to the file move.
1. Don't work with FilePaths - instead compare paths as Strings sorted lexicographically. This might leave extra paths, but it's faster.
2. Add a test for the bug.

[Reviewed by Max]
(cherry picked from commit de3ff0576939ffc4412e0228dd6103825cdd2a73)

Conflicts:

plugins/git4idea/tests/git4idea/tests/GitChangeProviderTest.java
plugins/git4idea/src/git4idea/changes/ChangeCollector.java