]> source.dussan.org Git - jgit.git/commit
Introduce PostUploadHook to replace UploadPackLogger 30/50130/5
authorTerry Parker <tparker@google.com>
Fri, 12 Jun 2015 19:00:36 +0000 (12:00 -0700)
committerTerry Parker <tparker@google.com>
Fri, 12 Jun 2015 20:56:16 +0000 (13:56 -0700)
commitd9bbb04c3ef28db1d2e492506a819b7ac5c5f9df
tree4214b2f1498b97f5296a881afe8ed3d47f45a0b0
parent53fb3e3dd394a845688696bd4afa343002dc36c6
Introduce PostUploadHook to replace UploadPackLogger

UploadPackLogger is incorrectly named--it can be used to trigger any
post upload action, such as GC/compaction. This change introduces
PostUploadHook/PostUploadHookChain to replace
UploadPackLogger/UploadPackLoggerChain and deprecates the latter.

It also introduces PackStatistics as a replacement for
PackWriter.Statistics, since the latter is not public API.
It changes PackWriter to use PackStatistics and reimplements
PackWriter.Statistics to delegate to PackStatistics.

Change-Id: Ic51df1613e471f568ffee25ae67e118425b38986
Signed-off-by: Terry Parker <tparker@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsGarbageCollector.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackCompactor.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackDescription.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackStatistics.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/PostUploadHook.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/PostUploadHookChain.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPackLogger.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPackLoggerChain.java