comparison cmdline/org/tmatesoft/hg/console/Cat.java @ 157:d5268ca7715b

Merged branch wrap-data-access into default for resource-friendly data access. Updated API to promote that friendliness to clients (channels, not byte[]). More exceptions
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 09 Mar 2011 05:22:17 +0100
parents 6b55f10ef54b
children 45dc79e545f5
comparison
equal deleted inserted replaced
156:643ddec3be36 157:d5268ca7715b
44 OutputStreamChannel out = new OutputStreamChannel(System.out); 44 OutputStreamChannel out = new OutputStreamChannel(System.out);
45 for (String fname : cmdLineOpts.getList("")) { 45 for (String fname : cmdLineOpts.getList("")) {
46 System.out.println(fname); 46 System.out.println(fname);
47 HgDataFile fn = hgRepo.getFileNode(fname); 47 HgDataFile fn = hgRepo.getFileNode(fname);
48 if (fn.exists()) { 48 if (fn.exists()) {
49 fn.content(rev, out, true); 49 fn.contentWithFilters(rev, out);
50 System.out.println(); 50 System.out.println();
51 } else { 51 } else {
52 System.out.printf("%s not found!\n", fname); 52 System.out.printf("%s not found!\n", fname);
53 } 53 }
54 } 54 }