comparison src/com/tmate/hgkit/ll/HgBundle.java @ 47:b01500fe2604

Log command output to match 'hg log'
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 14 Jan 2011 20:03:14 +0100
parents 70dafe20931d
children 9429c7bd1920
comparison
equal deleted inserted replaced
46:4022c34a4804 47:b01500fe2604
49 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? 49 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?
50 if (!ge.node().equalsTo(dh.asBinary())) { 50 if (!ge.node().equalsTo(dh.asBinary())) {
51 throw new IllegalStateException("Integrity check failed on " + bundleFile + ", node:" + ge.node()); 51 throw new IllegalStateException("Integrity check failed on " + bundleFile + ", node:" + ge.node());
52 } 52 }
53 Changeset cs = Changeset.parse(csetContent, 0, csetContent.length); 53 Changeset cs = Changeset.parse(csetContent, 0, csetContent.length);
54 cs.dump(); 54 System.out.println(cs.toString());
55 baseRevContent = csetContent; 55 baseRevContent = csetContent;
56 } 56 }
57 } finally { 57 } finally {
58 da.done(); 58 da.done();
59 } 59 }