DESCRIPTION

Add a helper method to find repository from given resource path

In most cases we can use RepositoryMapping to find the repository
responsible for versioning a given resource. But the team framework
doesn't allow to use RepositoryMappings to find the repository for
resources in a closed project. Hence add a helper method to find the
repository based on comparison of resource path and the working tree
path of all repositories known to the RepositoryCache.

Change-Id: I8d26d5a6ed4aa6661eb88d540ab643fb3b6cebbc
Signed-off-by: Douglas Trujillo xxx@xxx.xxx

COMMENTS

author: Douglas Trujillo
date: 2013-11-27 22:37:19.000000000

Uploaded patch set 2.

-------------------------------------
author: Brenden Conley
date: 2013-11-27 22:37:24.000000000

Patch Set 2:

Build Started https://hudson.eclipse.org/egit/job/egit.gerrit/5382/

-------------------------------------
author: Brenden Conley
date: 2013-11-27 22:53:17.000000000

Patch Set 2: Verified+1

Build Successful 

https://hudson.eclipse.org/egit/job/egit.gerrit/5382/ : SUCCESS

-------------------------------------
author: Danika Greer
date: 2013-11-27 23:16:26.000000000

Patch Set 2:

(3 comments)

Line:83, org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryCache.java -> I just noticed, does this xxx@xxx.xxx

Line:95, org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryCache.java -> Should not get location again -> isPrefixOf(location)

Line:97, org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryCache.java -> Ah, that reads even nicer :).

-------------------------------------
author: Douglas Trujillo
date: 2013-11-28 07:37:21.000000000

Patch Set 2:

(2 comments)

Line:83, org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryCache.java -> I think we don't need it since the package is internal, but added it anyway

Line:95, org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryCache.java -> Done

-------------------------------------
