int p2 = p2Rev.isNull() ? NO_REVISION : revlogRevs.revisionIndex(p2Rev);
Patch p = null;
try {
p = HgInternals.patchFromData(ge);
} catch (IOException ex) {
throw new HgIOException("Failed to read patch information", ex, null);
}
//
final Nodeid patchBase = ge.patchBase();
int patchBaseRev = patchBase.isNull() ? NO_REVISION : revlogRevs.revisionIndex(patchBase);
int baseRev = lastEntryIndex == NO_REVISION ? 0 : revlogStream.baseRevision(patchBaseRev);