diff options
author | André Dietisheim <adietish@redhat.com> | 2013-02-01 15:58:44 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2013-03-21 00:30:30 +0100 |
commit | a31920555f075c028f087b2e174293e1f11d714d (patch) | |
tree | 6a62dbfe6c53d172e2ffda2196cc0f901e17f5a1 /org.eclipse.jgit.test | |
parent | 8fcde4b31b36205ea6ef673808489943e4aca3ef (diff) | |
download | jgit-a31920555f075c028f087b2e174293e1f11d714d.tar.gz jgit-a31920555f075c028f087b2e174293e1f11d714d.zip |
Allow users to show server messages while pushing
Allow users to provide their OutputStream (via Transport#
push(monitor, refUpdates, out)) so that server messages can be written
to it (in SideBandInputStream) while they're coming in.
CQ: 7065
Bug: 398404
Change-Id: I670782784b38702d52bca98203909aca0496d1c0
Signed-off-by: Andre Dietisheim <andre.dietisheim@gmail.com>
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushProcessTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushProcessTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushProcessTest.java index 69824b2138..e523db981a 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushProcessTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/PushProcessTest.java @@ -48,6 +48,7 @@ import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.IOException; +import java.io.OutputStream; import java.util.HashMap; import java.util.HashSet; import java.util.Map; @@ -432,6 +433,12 @@ public class PushProcessTest extends SampleDataRepositoryTestCase { } public void push(ProgressMonitor monitor, + Map<String, RemoteRefUpdate> refsToUpdate, OutputStream out) + throws TransportException { + push(monitor, refsToUpdate); + } + + public void push(ProgressMonitor monitor, Map<String, RemoteRefUpdate> refsToUpdate) throws TransportException { for (final RemoteRefUpdate rru : refsToUpdate.values()) { |