From 63fc6970cc51b712608d93e7cba0b85bb559ac52 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Thu, 14 Nov 2019 10:08:24 -0800 Subject: Suppress the API errors introduced by 3e9a5f99 I1ce92869435d5eebb7d671be44561e69c6233134 merged BaseReceivePack into ReceivePack which breaks API but is only affecting the few jgit based servers out in the wild. Change-Id: Iad856a2afaf3cad95d01ad81a0116cebcd9de2d9 Signed-off-by: Matthias Sohn --- org.eclipse.jgit/.settings/.api_filters | 59 ++++++++++++++++++++++ .../eclipse/jgit/transport/AdvertiseRefsHook.java | 1 + .../org/eclipse/jgit/transport/ReceiveCommand.java | 2 +- .../org/eclipse/jgit/transport/ReceivePack.java | 2 + 4 files changed, 63 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit/.settings/.api_filters b/org.eclipse.jgit/.settings/.api_filters index 4d9185c29e..730282f054 100644 --- a/org.eclipse.jgit/.settings/.api_filters +++ b/org.eclipse.jgit/.settings/.api_filters @@ -1,5 +1,13 @@ + + + + + + + + @@ -30,6 +38,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/AdvertiseRefsHook.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/AdvertiseRefsHook.java index b771e99c05..eb1aef9ad7 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/AdvertiseRefsHook.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/AdvertiseRefsHook.java @@ -89,6 +89,7 @@ public interface AdvertiseRefsHook { * if necessary. * @throws org.eclipse.jgit.transport.ServiceMayNotContinueException * abort; the message will be sent to the user. + * @since 5.6 */ void advertiseRefs(ReceivePack receivePack) throws ServiceMayNotContinueException; diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceiveCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceiveCommand.java index 29c01fea72..0616b64d27 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceiveCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceiveCommand.java @@ -768,7 +768,7 @@ public class ReceiveCommand { * * @param rp * receive-pack session. - * @since 2.0 + * @since 5.6 */ public void execute(ReceivePack rp) { try { diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java index 1336ff895d..d24b4c4850 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java @@ -124,6 +124,7 @@ public class ReceivePack { * Data in the first line of a request, the line itself plus capabilities. * * @deprecated Use {@link FirstCommand} instead. + * @since 5.6 */ @Deprecated public static class FirstLine { @@ -1849,6 +1850,7 @@ public class ReceivePack { * the reporter for sending the status strings. * @throws java.io.IOException * an error occurred writing the status report. + * @since 5.6 */ protected void sendStatusReport(final boolean forClient, final Throwable unpackError, final Reporter out) -- cgit v1.2.3