Update JGit to 0.4.0-398-ge866578
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -253,7 +253,7 @@ limitations under the License.
|
||||
</licenses>
|
||||
|
||||
<properties>
|
||||
<jgitVersion>0.4.0-388-gd3d9379</jgitVersion>
|
||||
<jgitVersion>0.4.0-398-ge866578</jgitVersion>
|
||||
<gwtormVersion>1.1.1</gwtormVersion>
|
||||
<gwtjsonrpcVersion>1.1.0</gwtjsonrpcVersion>
|
||||
<gwtexpuiVersion>1.1.1</gwtexpuiVersion>
|
||||
|
@@ -51,7 +51,7 @@ public class PatchFile {
|
||||
final RevWalk rw = new RevWalk(repo);
|
||||
final RevCommit bCommit = rw.parseCommit(ObjectId.fromString(id.get()));
|
||||
if (bCommit.getParentCount() > 0) {
|
||||
rw.parse(bCommit.getParent(0));
|
||||
rw.parseHeaders(bCommit.getParent(0));
|
||||
aTree = bCommit.getParent(0).getTree();
|
||||
} else {
|
||||
aTree = emptyTree();
|
||||
|
@@ -67,7 +67,7 @@ class AdminShowCaches extends AbstractCommand {
|
||||
final long mFree = r.freeMemory();
|
||||
final long mTotal = r.totalMemory();
|
||||
final long mInuse = mTotal - mFree;
|
||||
final int jgitBytes = WindowCacheStatAccessor.getOpenBytes();
|
||||
final long jgitBytes = WindowCacheStatAccessor.getOpenBytes();
|
||||
|
||||
p.println("JGit Buffer Cache:");
|
||||
fItemCount("open files", WindowCacheStatAccessor.getOpenFiles());
|
||||
|
@@ -22,7 +22,7 @@ public class WindowCacheStatAccessor {
|
||||
return WindowCache.getInstance().getOpenFiles();
|
||||
}
|
||||
|
||||
public static int getOpenBytes() {
|
||||
public static long getOpenBytes() {
|
||||
return WindowCache.getInstance().getOpenBytes();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user