Mercurial > hg4j
diff cmdline/org/tmatesoft/hg/console/Main.java @ 472:2a0b09eec376
Tests for issue 31
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 11 Jul 2012 21:46:28 +0200 |
parents | 7bcfbc255f48 |
children | 09f2d38ecf26 |
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Main.java Wed Jul 11 20:40:47 2012 +0200 +++ b/cmdline/org/tmatesoft/hg/console/Main.java Wed Jul 11 21:46:28 2012 +0200 @@ -108,14 +108,13 @@ // m.checkWalkFileRevisions(); // m.checkSubProgress(); // m.checkFileFlags(); - m.testMqManager(); -// m.testRevisionDescendants(); +// m.testMqManager(); // m.dumpPhases(); // m.buildFileLog(); // m.testConsoleLog(); // m.testTreeTraversal(); // m.testRevisionMap(); - m.testSubrepos(); +// m.testSubrepos(); // m.testReadWorkingCopy(); // m.testParents(); // m.testEffectiveFileLog(); @@ -159,25 +158,6 @@ } - // -R {junit-test-repos}/branches-1 - private void testRevisionDescendants() throws Exception { - int[] roots = new int[] {0, 1, 2, 3, 4, 5}; - RevisionDescendants[] result = new RevisionDescendants[roots.length]; - for (int i = 0; i < roots.length; i++) { - result[i] = new RevisionDescendants(hgRepo, roots[i]); - result[i].build(); - } - for (int i = 0; i < roots.length; i++) { - System.out.printf("For root %d descendats are:", roots[i]); - for (int j = roots[i], x = hgRepo.getChangelog().getLastRevision(); j <= x; j++) { - if (result[i].isDescendant(j)) { - System.out.printf("%3d ", j); - } - } - System.out.printf(", isEmpty:%b\n", !result[i].hasDescendants()); - } - } - // -R ${system_property:user.home}/hg/test-phases/ // TODO as junit test private void dumpPhases() throws Exception {