Mercurial > hg4j
diff cmdline/org/tmatesoft/hg/console/Main.java @ 511:122e0600799f
Respect multiple joins/forks in a history of a single file
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 14 Dec 2012 15:39:49 +0100 |
parents | ca5202afea90 |
children | 5dcb4581c8ef |
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Main.java Thu Dec 13 15:46:40 2012 +0100 +++ b/cmdline/org/tmatesoft/hg/console/Main.java Fri Dec 14 15:39:49 2012 +0100 @@ -172,7 +172,8 @@ private void buildFileLog() throws Exception { final long start = System.nanoTime(); HgLogCommand cmd = new HgLogCommand(hgRepo); - cmd.file("cmdline/org/tmatesoft/hg/console/Remote.java", true); + cmd.file("file1b.txt", true); + final int[] count = new int[] { 0 }; cmd.execute(new HgChangesetTreeHandler() { public void treeElement(HgChangesetTreeHandler.TreeElement entry) { StringBuilder sb = new StringBuilder(); @@ -208,8 +209,10 @@ if (isJoin || isFork) { System.out.println(); } + count[0]++; } }); + System.out.println(count[0]); final long end = System.nanoTime(); System.out.printf("buildFileLog: %,d ms\n", (end-start)/1000); }