throw new IllegalStateException(String.format("Revision %s needs a parent %s, which is missing in the supplied repo %s", ge.node().shortNotation(), base.shortNotation(), hgRepo.toString()));
}
ByteArrayChannel bac = new ByteArrayChannel();
changelog.rawContent(base, bac); // TODO post-1.0 get DataAccess directly, to avoid
// extra byte[] (inside ByteArrayChannel) duplication just for the sake of subsequent ByteArrayDataChannel wrap.
prevRevContent = new ByteArrayDataAccess(bac.toArray());
}
}
//
byte[] csetContent = ge.patch().apply(prevRevContent, -1);
dh = dh.sha1(ge.firstParent(), ge.secondParent(), csetContent); // XXX ge may give me access to byte[] content of nodeid directly, perhaps, I don't need DH to be friend of Nodeid?