Fix Replace With on project when it is the root of working tree
commitf0d88e2081234ff0b4c5fd3bc7943c545448c942
authorRobin Stocker <robin@nibor.org>
Sat, 20 Oct 2012 21:52:19 +0000 (20 23:52 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 4 Nov 2012 22:53:18 +0000 (4 23:53 +0100)
tree681260cce766f4d48921b2562830590afb73e643
parentf0308064df036e48954f7ed440c0d99a7e945a15
Fix Replace With on project when it is the root of working tree

ResourceUtil used to return an empty map when a repo-relative path
resulted in being "" (the root). We now also return it and handle it in
DiscardChangesOperation.

Bug: 392513
Change-Id: I817c01c651b2989cc504ab622ba9f98df0620a6a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/DiscardChangesOperationTest.java
org.eclipse.egit.core/src/org/eclipse/egit/core/internal/util/ResourceUtil.java
org.eclipse.egit.core/src/org/eclipse/egit/core/op/DiscardChangesOperation.java