Mercurial > jhg
diff 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 |
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Log.java Mon Jan 24 04:38:09 2011 +0100 +++ b/cmdline/org/tmatesoft/hg/console/Log.java Mon Jan 24 05:33:47 2011 +0100 @@ -82,15 +82,16 @@ for (String fname : cmdLineOpts.files) { HgDataFile f1 = hgRepo.getFileNode(fname); System.out.println("History of the file: " + f1.getPath()); + String normalizesName = hgRepo.getPathHelper().rewrite(fname); if (cmdLineOpts.limit == -1) { - cmd.file(Path.create(fname)).execute(dump); + cmd.file(Path.create(normalizesName)).execute(dump); } else { int[] r = new int[] { 0, f1.getRevisionCount() }; if (fixRange(r, dump.reverseOrder, cmdLineOpts.limit) == 0) { System.out.println("No changes"); continue; } - cmd.range(r[0], r[1]).file(Path.create(fname)).execute(dump); + cmd.range(r[0], r[1]).file(Path.create(normalizesName)).execute(dump); } dump.complete(); }