comparison cmdline/org/tmatesoft/hg/console/Main.java @ 429:cd658b24a620

FIXMEs: javadoc, proper use of constants
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 29 Mar 2012 18:29:03 +0200
parents 31a89587eb04
children 12f668401613
comparison
equal deleted inserted replaced
428:ead6c67f3319 429:cd658b24a620
15 * contact TMate Software at support@hg4j.com 15 * contact TMate Software at support@hg4j.com
16 */ 16 */
17 package org.tmatesoft.hg.console; 17 package org.tmatesoft.hg.console;
18 18
19 import static org.tmatesoft.hg.repo.HgRepository.TIP; 19 import static org.tmatesoft.hg.repo.HgRepository.TIP;
20 import static org.tmatesoft.hg.repo.HgRepository.WORKING_COPY;
20 21
21 import java.io.File; 22 import java.io.File;
22 import java.io.IOException; 23 import java.io.IOException;
23 import java.util.ArrayList; 24 import java.util.ArrayList;
24 import java.util.Collection; 25 import java.util.Collection;
432 // final Path path = Path.create("src/org/tmatesoft/hg/util/"); 433 // final Path path = Path.create("src/org/tmatesoft/hg/util/");
433 // final Path path = Path.create("src/org/tmatesoft/hg/internal/Experimental.java"); 434 // final Path path = Path.create("src/org/tmatesoft/hg/internal/Experimental.java");
434 // final Path path = Path.create("missing-dir/"); 435 // final Path path = Path.create("missing-dir/");
435 // HgWorkingCopyStatusCollector wcsc = HgWorkingCopyStatusCollector.create(hgRepo, path); 436 // HgWorkingCopyStatusCollector wcsc = HgWorkingCopyStatusCollector.create(hgRepo, path);
436 HgWorkingCopyStatusCollector wcsc = HgWorkingCopyStatusCollector.create(hgRepo, new PathGlobMatcher("mi**")); 437 HgWorkingCopyStatusCollector wcsc = HgWorkingCopyStatusCollector.create(hgRepo, new PathGlobMatcher("mi**"));
437 wcsc.walk(TIP, new StatusDump()); 438 wcsc.walk(WORKING_COPY, new StatusDump());
438 } 439 }
439 440
440 /* 441 /*
441 * Straightforward approach to collect branches, no use of branchheads.cache 442 * Straightforward approach to collect branches, no use of branchheads.cache
442 * First, single run - 18 563 443 * First, single run - 18 563
598 // 599 //
599 System.out.println("\n\nTry hg status --change <rev>:"); 600 System.out.println("\n\nTry hg status --change <rev>:");
600 sc.change(0, dump); 601 sc.change(0, dump);
601 System.out.println("\nStatus against working dir:"); 602 System.out.println("\nStatus against working dir:");
602 HgWorkingCopyStatusCollector wcc = new HgWorkingCopyStatusCollector(hgRepo); 603 HgWorkingCopyStatusCollector wcc = new HgWorkingCopyStatusCollector(hgRepo);
603 wcc.walk(TIP, dump); 604 wcc.walk(WORKING_COPY, dump);
604 System.out.println(); 605 System.out.println();
605 System.out.printf("Manifest of the revision %d:\n", r2); 606 System.out.printf("Manifest of the revision %d:\n", r2);
606 hgRepo.getManifest().walk(r2, r2, new ManifestDump()); 607 hgRepo.getManifest().walk(r2, r2, new ManifestDump());
607 System.out.println(); 608 System.out.println();
608 System.out.printf("\nStatus of working dir against %d:\n", r2); 609 System.out.printf("\nStatus of working dir against %d:\n", r2);