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>
|
</licenses>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<jgitVersion>0.4.0-388-gd3d9379</jgitVersion>
|
<jgitVersion>0.4.0-398-ge866578</jgitVersion>
|
||||||
<gwtormVersion>1.1.1</gwtormVersion>
|
<gwtormVersion>1.1.1</gwtormVersion>
|
||||||
<gwtjsonrpcVersion>1.1.0</gwtjsonrpcVersion>
|
<gwtjsonrpcVersion>1.1.0</gwtjsonrpcVersion>
|
||||||
<gwtexpuiVersion>1.1.1</gwtexpuiVersion>
|
<gwtexpuiVersion>1.1.1</gwtexpuiVersion>
|
||||||
|
@@ -51,7 +51,7 @@ public class PatchFile {
|
|||||||
final RevWalk rw = new RevWalk(repo);
|
final RevWalk rw = new RevWalk(repo);
|
||||||
final RevCommit bCommit = rw.parseCommit(ObjectId.fromString(id.get()));
|
final RevCommit bCommit = rw.parseCommit(ObjectId.fromString(id.get()));
|
||||||
if (bCommit.getParentCount() > 0) {
|
if (bCommit.getParentCount() > 0) {
|
||||||
rw.parse(bCommit.getParent(0));
|
rw.parseHeaders(bCommit.getParent(0));
|
||||||
aTree = bCommit.getParent(0).getTree();
|
aTree = bCommit.getParent(0).getTree();
|
||||||
} else {
|
} else {
|
||||||
aTree = emptyTree();
|
aTree = emptyTree();
|
||||||
|
@@ -67,7 +67,7 @@ class AdminShowCaches extends AbstractCommand {
|
|||||||
final long mFree = r.freeMemory();
|
final long mFree = r.freeMemory();
|
||||||
final long mTotal = r.totalMemory();
|
final long mTotal = r.totalMemory();
|
||||||
final long mInuse = mTotal - mFree;
|
final long mInuse = mTotal - mFree;
|
||||||
final int jgitBytes = WindowCacheStatAccessor.getOpenBytes();
|
final long jgitBytes = WindowCacheStatAccessor.getOpenBytes();
|
||||||
|
|
||||||
p.println("JGit Buffer Cache:");
|
p.println("JGit Buffer Cache:");
|
||||||
fItemCount("open files", WindowCacheStatAccessor.getOpenFiles());
|
fItemCount("open files", WindowCacheStatAccessor.getOpenFiles());
|
||||||
|
@@ -22,7 +22,7 @@ public class WindowCacheStatAccessor {
|
|||||||
return WindowCache.getInstance().getOpenFiles();
|
return WindowCache.getInstance().getOpenFiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getOpenBytes() {
|
public static long getOpenBytes() {
|
||||||
return WindowCache.getInstance().getOpenBytes();
|
return WindowCache.getInstance().getOpenBytes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user