comparison cmdline/org/tmatesoft/hg/console/Main.java @ 508:ca5202afea90

Support follow history option when walking file history tree
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 12 Dec 2012 20:52:10 +0100
parents a6435c1a42d0
children 122e0600799f
comparison
equal deleted inserted replaced
507:a6435c1a42d0 508:ca5202afea90
170 } 170 }
171 171
172 private void buildFileLog() throws Exception { 172 private void buildFileLog() throws Exception {
173 final long start = System.nanoTime(); 173 final long start = System.nanoTime();
174 HgLogCommand cmd = new HgLogCommand(hgRepo); 174 HgLogCommand cmd = new HgLogCommand(hgRepo);
175 cmd.file("file1", false); 175 cmd.file("cmdline/org/tmatesoft/hg/console/Remote.java", true);
176 cmd.execute(new HgChangesetTreeHandler() { 176 cmd.execute(new HgChangesetTreeHandler() {
177 public void treeElement(HgChangesetTreeHandler.TreeElement entry) { 177 public void treeElement(HgChangesetTreeHandler.TreeElement entry) {
178 StringBuilder sb = new StringBuilder(); 178 StringBuilder sb = new StringBuilder();
179 HashSet<Nodeid> test = new HashSet<Nodeid>(entry.childRevisions()); 179 HashSet<Nodeid> test = new HashSet<Nodeid>(entry.childRevisions());
180 for (HgChangeset cc : entry.children()) { 180 for (HgChangeset cc : entry.children()) {