]> source.dussan.org Git - jgit.git/commit
smart-http: Support progress in ReceivePack 11/2511/1
authorShawn O. Pearce <spearce@spearce.org>
Tue, 15 Feb 2011 22:46:30 +0000 (14:46 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 16 Feb 2011 00:32:51 +0000 (16:32 -0800)
commitbd531eb998e233b8be27ef9944cae2c1148db5b6
treed14345f4c22f1617f793040f45e407c0f47a1adf
parent18e822a7fefb35e4a68ca4b337541c0a1a222a43
smart-http: Support progress in ReceivePack

As PackParser supports a progress meter for the "Resolving deltas"
phase of its work, we should export this to smart HTTP clients so
they know the server is still working on their (large) upload.

However this isn't as simple as just dropping in a binding for
the SmartOutputStream to flush when its told to.  We want to
avoid spurious flushes triggered by the use of sideband, or the
status report formatting in the send-pack/receive-pack protocol.

Change-Id: Ibd88022a298c5fed0edb23dfaf2e90278807ba8b
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/ReceivePackServlet.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/PacketLineOut.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/SideBandOutputStream.java