summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-11-14 10:08:24 -0800
committerMatthias Sohn <matthias.sohn@sap.com>2019-11-14 10:08:24 -0800
commit63fc6970cc51b712608d93e7cba0b85bb559ac52 (patch)
tree56c7ee30bfb44dfa9635e3663645509fb19467fc
parent57bb09ade94bce7860efa0633a599aec55f7aee6 (diff)
downloadjgit-63fc6970cc51b712608d93e7cba0b85bb559ac52.tar.gz
jgit-63fc6970cc51b712608d93e7cba0b85bb559ac52.zip
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 <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.jgit/.settings/.api_filters59
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/AdvertiseRefsHook.java1
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceiveCommand.java2
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java2
4 files changed, 63 insertions, 1 deletions
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 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<component id="org.eclipse.jgit" version="2">
+ <resource path="META-INF/MANIFEST.MF" type="org.eclipse.jgit.transport.BaseReceivePack">
+ <filter comment="Merged BaseReceivePack into ReceivePack, replace BaseReceivePack with ReceivePack" id="305324134">
+ <message_arguments>
+ <message_argument value="org.eclipse.jgit.transport.BaseReceivePack"/>
+ <message_argument value="org.eclipse.jgit_5.6.0"/>
+ </message_arguments>
+ </filter>
+ </resource>
<resource path="src/org/eclipse/jgit/lib/Config.java" type="org.eclipse.jgit.lib.Config">
<filter id="1142947843">
<message_arguments>
@@ -30,6 +38,57 @@
</message_arguments>
</filter>
</resource>
+ <resource path="src/org/eclipse/jgit/transport/AbstractAdvertiseRefsHook.java" type="org.eclipse.jgit.transport.AbstractAdvertiseRefsHook">
+ <filter comment="Merged BaseReceivePack into ReceivePack, replace BaseReceivePack with ReceivePack" id="338792546">
+ <message_arguments>
+ <message_argument value="org.eclipse.jgit.transport.AbstractAdvertiseRefsHook"/>
+ <message_argument value="advertiseRefs(BaseReceivePack)"/>
+ </message_arguments>
+ </filter>
+ </resource>
+ <resource path="src/org/eclipse/jgit/transport/AdvertiseRefsHook.java" type="org.eclipse.jgit.transport.AdvertiseRefsHook">
+ <filter comment="Merged BaseReceivePack into ReceivePack, replace BaseReceivePack with ReceivePack" id="403804204">
+ <message_arguments>
+ <message_argument value="org.eclipse.jgit.transport.AdvertiseRefsHook"/>
+ <message_argument value="advertiseRefs(ReceivePack)"/>
+ </message_arguments>
+ </filter>
+ <filter comment="Merged BaseReceivePack into ReceivePack, replace BaseReceivePack with ReceivePack" id="405901410">
+ <message_arguments>
+ <message_argument value="org.eclipse.jgit.transport.AdvertiseRefsHook"/>
+ <message_argument value="advertiseRefs(BaseReceivePack)"/>
+ </message_arguments>
+ </filter>
+ </resource>
+ <resource path="src/org/eclipse/jgit/transport/AdvertiseRefsHookChain.java" type="org.eclipse.jgit.transport.AdvertiseRefsHookChain">
+ <filter comment="Merged BaseReceivePack into ReceivePack, replace BaseReceivePack with ReceivePack" id="338792546">
+ <message_arguments>
+ <message_argument value="org.eclipse.jgit.transport.AdvertiseRefsHookChain"/>
+ <message_argument value="advertiseRefs(BaseReceivePack)"/>
+ </message_arguments>
+ </filter>
+ </resource>
+ <resource path="src/org/eclipse/jgit/transport/ReceiveCommand.java" type="org.eclipse.jgit.transport.ReceiveCommand">
+ <filter comment="Merged BaseReceivePack into ReceivePack, replace BaseReceivePack with ReceivePack" id="338792546">
+ <message_arguments>
+ <message_argument value="org.eclipse.jgit.transport.ReceiveCommand"/>
+ <message_argument value="execute(BaseReceivePack)"/>
+ </message_arguments>
+ </filter>
+ </resource>
+ <resource path="src/org/eclipse/jgit/transport/ReceivePack.java" type="org.eclipse.jgit.transport.ReceivePack">
+ <filter comment="Merged BaseReceivePack into ReceivePack, replace BaseReceivePack with ReceivePack" id="338792546">
+ <message_arguments>
+ <message_argument value="org.eclipse.jgit.transport.ReceivePack"/>
+ <message_argument value="getLockMessageProcessName()"/>
+ </message_arguments>
+ </filter>
+ <filter comment="Merged BaseReceivePack into ReceivePack, replace BaseReceivePack with ReceivePack" id="338849923">
+ <message_arguments>
+ <message_argument value="org.eclipse.jgit.transport.ReceivePack"/>
+ </message_arguments>
+ </filter>
+ </resource>
<resource path="src/org/eclipse/jgit/util/SystemReader.java" type="org.eclipse.jgit.util.SystemReader">
<filter id="336695337">
<message_arguments>
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)