comparison cmdline/org/tmatesoft/hg/console/Main.java @ 416:d30083c80d52

Better names - non-confusing and aligned with the rest of API
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 22 Mar 2012 19:11:33 +0100
parents ee8264d80747
children ccd7d25e5aea
comparison
equal deleted inserted replaced
415:ee8264d80747 416:d30083c80d52
600 HgDataFile n = hgRepo.getFileNode(Path.create("design.txt")); 600 HgDataFile n = hgRepo.getFileNode(Path.create("design.txt"));
601 for (String s : new String[] {"011dfd44417c72bd9e54cf89b82828f661b700ed", "e5529faa06d53e06a816e56d218115b42782f1ba", "c18e7111f1fc89a80a00f6a39d51288289a382fc"}) { 601 for (String s : new String[] {"011dfd44417c72bd9e54cf89b82828f661b700ed", "e5529faa06d53e06a816e56d218115b42782f1ba", "c18e7111f1fc89a80a00f6a39d51288289a382fc"}) {
602 // expected: 359, 2123, 3079 602 // expected: 359, 2123, 3079
603 byte[] b = s.getBytes(); 603 byte[] b = s.getBytes();
604 final Nodeid nid = Nodeid.fromAscii(b, 0, b.length); 604 final Nodeid nid = Nodeid.fromAscii(b, 0, b.length);
605 System.out.println(s + " : " + n.length(nid)); 605 System.out.println(s + " : " + n.getLength(nid));
606 } 606 }
607 } 607 }
608 608
609 static void force_gc() { 609 static void force_gc() {
610 Runtime.getRuntime().runFinalization(); 610 Runtime.getRuntime().runFinalization();