Correct getRepositoryMapping callers to use any IResource
commitc6e754dd00b4c6486453f4b27e423cf939abf5ff
authorShawn O. Pearce <spearce@spearce.org>
Sun, 10 Aug 2008 06:50:07 +0000 (9 23:50 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 10 Aug 2008 06:50:07 +0000 (9 23:50 -0700)
treec8002f9c08b49af12dac9c4e6b4cbe726ff5e02d
parentd6103ff0f5949bbc2e3d211ed0eab8ffbdeb257f
Correct getRepositoryMapping callers to use any IResource

We really need to use the exact resource we want a mapping for, even
if that is an IFile, because the file may be in a different repository
than the project it is contained in.  This can happen due to linked
resources, or due to submodules.  Either way the mapping cannot be
driven by the project.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.egit.core/src/org/spearce/egit/core/op/UntrackOperation.java
org.spearce.egit.core/src/org/spearce/egit/core/project/RepositoryMapping.java
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/CommitAction.java