patch1.read(new ByteArrayDataAccess(patchData.array(), patchData.arrayOffset(), patchData.remaining()));
return patch1;
}
private byte[] getRevisionTrueContent(File repoLoc, final int manifestRev, int clogRev) throws HgRepositoryNotFoundException, IllegalArgumentException, HgRuntimeException {
HgRepository hgRepo = new HgLookup().detect(repoLoc);
final ByteArrayOutputStream out = new ByteArrayOutputStream(1024 * 1000);
hgRepo.getManifest().walk(clogRev, clogRev, new HgManifest.Inspector() {
public boolean next(Nodeid nid, Path fname, Flags flags) {
try {