comparison src/com/tmate/hgkit/console/Cat.java @ 42:92c3d0920d58

Real integrity check, with exception. DigestHelper refactored to accomodate new needs
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 14 Jan 2011 04:29:03 +0100
parents 571e1b2cc3f7
children b771e94a4f7c
comparison
equal deleted inserted replaced
41:858d1b2458cb 42:92c3d0920d58
41 System.out.println(new String(content)); 41 System.out.println(new String(content));
42 int[] parentRevisions = new int[2]; 42 int[] parentRevisions = new int[2];
43 byte[] parent1 = new byte[20]; 43 byte[] parent1 = new byte[20];
44 byte[] parent2 = new byte[20]; 44 byte[] parent2 = new byte[20];
45 fn.parents(i, parentRevisions, parent1, parent2); 45 fn.parents(i, parentRevisions, parent1, parent2);
46 System.out.println(dh.sha1(parent1, parent2, content)); 46 System.out.println(dh.sha1(parent1, parent2, content).asHexString());
47 } 47 }
48 } else { 48 } else {
49 System.out.println(">>>Not found!"); 49 System.out.println(">>>Not found!");
50 } 50 }
51 } 51 }