comparison cmdline/org/tmatesoft/hg/console/Log.java @ 77:c677e1593919

Moved RevlogStream implementation into .internal
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 24 Jan 2011 05:33:47 +0100
parents 6f1b88693d48
children 4222b04f34ee
comparison
equal deleted inserted replaced
76:658fa6b3a371 77:c677e1593919
80 dump.complete(); 80 dump.complete();
81 } else { 81 } else {
82 for (String fname : cmdLineOpts.files) { 82 for (String fname : cmdLineOpts.files) {
83 HgDataFile f1 = hgRepo.getFileNode(fname); 83 HgDataFile f1 = hgRepo.getFileNode(fname);
84 System.out.println("History of the file: " + f1.getPath()); 84 System.out.println("History of the file: " + f1.getPath());
85 String normalizesName = hgRepo.getPathHelper().rewrite(fname);
85 if (cmdLineOpts.limit == -1) { 86 if (cmdLineOpts.limit == -1) {
86 cmd.file(Path.create(fname)).execute(dump); 87 cmd.file(Path.create(normalizesName)).execute(dump);
87 } else { 88 } else {
88 int[] r = new int[] { 0, f1.getRevisionCount() }; 89 int[] r = new int[] { 0, f1.getRevisionCount() };
89 if (fixRange(r, dump.reverseOrder, cmdLineOpts.limit) == 0) { 90 if (fixRange(r, dump.reverseOrder, cmdLineOpts.limit) == 0) {
90 System.out.println("No changes"); 91 System.out.println("No changes");
91 continue; 92 continue;
92 } 93 }
93 cmd.range(r[0], r[1]).file(Path.create(fname)).execute(dump); 94 cmd.range(r[0], r[1]).file(Path.create(normalizesName)).execute(dump);
94 } 95 }
95 dump.complete(); 96 dump.complete();
96 } 97 }
97 } 98 }
98 // 99 //