summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.test
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2021-01-27 13:36:43 -0500
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>2021-01-27 13:36:43 -0500
commitc29ec3447d3339e57a46e02423c44ba3638a197e (patch)
tree3588167bbd6b5f57400f9ffc2ad03a12a10e11b4 /org.eclipse.jgit.http.test
parentb79882586de256060076324cd988f3a1cbd92b38 (diff)
parent31e3cb4375f92e56f27b83c4583523c14a712b2d (diff)
downloadjgit-c29ec3447d3339e57a46e02423c44ba3638a197e.tar.gz
jgit-c29ec3447d3339e57a46e02423c44ba3638a197e.zip
Merge changes I36d9b63e,I8c5db581,I2c02e89c
* changes: Compare getting all refs except specific refs with seek and with filter Add getsRefsByPrefixWithSkips (excluding prefixes) to ReftableDatabase Add seekPastPrefix method to RefCursor
Diffstat (limited to 'org.eclipse.jgit.http.test')
-rw-r--r--org.eclipse.jgit.http.test/src/org/eclipse/jgit/http/test/RefsUnreadableInMemoryRepository.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.jgit.http.test/src/org/eclipse/jgit/http/test/RefsUnreadableInMemoryRepository.java b/org.eclipse.jgit.http.test/src/org/eclipse/jgit/http/test/RefsUnreadableInMemoryRepository.java
index 80cbe8738c..4167b038e1 100644
--- a/org.eclipse.jgit.http.test/src/org/eclipse/jgit/http/test/RefsUnreadableInMemoryRepository.java
+++ b/org.eclipse.jgit.http.test/src/org/eclipse/jgit/http/test/RefsUnreadableInMemoryRepository.java
@@ -85,6 +85,17 @@ class RefsUnreadableInMemoryRepository extends InMemoryRepository {
/** {@inheritDoc} */
@Override
+ public List<Ref> getRefsByPrefixWithExclusions(String include, Set<String> excludes)
+ throws IOException {
+ if (failing) {
+ throw new IOException("disk failed, no refs found");
+ }
+
+ return super.getRefsByPrefixWithExclusions(include, excludes);
+ }
+
+ /** {@inheritDoc} */
+ @Override
public Set<Ref> getTipsWithSha1(ObjectId id) throws IOException {
if (failing) {
throw new IOException("disk failed, no refs found");