Mercurial > hg4j
comparison test/org/tmatesoft/hg/test/TestRevisionMaps.java @ 656:a937e63b6e02
Performance: rebuild information about branches takes too long (my improvement: 3 times, 11-15 s to less than 4 sec)
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 04 Jul 2013 18:40:03 +0200 |
parents | 629a7370554c |
children | 6334b0267103 |
comparison
equal
deleted
inserted
replaced
655:bcbcc318f250 | 656:a937e63b6e02 |
---|---|
14 * the terms of a license other than GNU General Public License | 14 * the terms of a license other than GNU General Public License |
15 * contact TMate Software at support@hg4j.com | 15 * contact TMate Software at support@hg4j.com |
16 */ | 16 */ |
17 package org.tmatesoft.hg.test; | 17 package org.tmatesoft.hg.test; |
18 | 18 |
19 import java.util.ArrayList; | |
19 import java.util.Arrays; | 20 import java.util.Arrays; |
20 import java.util.Collections; | 21 import java.util.Collections; |
21 import java.util.HashSet; | 22 import java.util.HashSet; |
22 | 23 |
23 import org.junit.Rule; | 24 import org.junit.Rule; |
82 errorCollector.assertFalse(parentHelper.isChild(n, p2)); | 83 errorCollector.assertFalse(parentHelper.isChild(n, p2)); |
83 // | 84 // |
84 | 85 |
85 } | 86 } |
86 // heads | 87 // heads |
87 errorCollector.assertEquals(Arrays.asList(allRevs[7], allRevs[9]), parentHelper.heads()); | 88 errorCollector.assertEquals(Arrays.asList(allRevs[7], allRevs[9]), new ArrayList<Nodeid>(parentHelper.heads())); |
88 // isChild | 89 // isChild |
89 errorCollector.assertTrue(parentHelper.isChild(allRevs[1], allRevs[9])); | 90 errorCollector.assertTrue(parentHelper.isChild(allRevs[1], allRevs[9])); |
90 errorCollector.assertTrue(parentHelper.isChild(allRevs[0], allRevs[7])); | 91 errorCollector.assertTrue(parentHelper.isChild(allRevs[0], allRevs[7])); |
91 errorCollector.assertFalse(parentHelper.isChild(allRevs[4], allRevs[7])); | 92 errorCollector.assertFalse(parentHelper.isChild(allRevs[4], allRevs[7])); |
92 errorCollector.assertFalse(parentHelper.isChild(allRevs[2], allRevs[6])); | 93 errorCollector.assertFalse(parentHelper.isChild(allRevs[2], allRevs[6])); |