comparison cmdline/org/tmatesoft/hg/console/Incoming.java @ 174:b1de83ffa7f8

Build shall succeed with no precompiled classes, too
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 30 Mar 2011 02:43:15 +0200
parents 4bf061a7c001
children a8df7162ec75
comparison
equal deleted inserted replaced
173:4bf061a7c001 174:b1de83ffa7f8
27 import java.util.LinkedHashMap; 27 import java.util.LinkedHashMap;
28 import java.util.LinkedHashSet; 28 import java.util.LinkedHashSet;
29 import java.util.LinkedList; 29 import java.util.LinkedList;
30 import java.util.List; 30 import java.util.List;
31 import java.util.Map.Entry; 31 import java.util.Map.Entry;
32
33 import junit.framework.Assert;
34 32
35 import org.tmatesoft.hg.core.Nodeid; 33 import org.tmatesoft.hg.core.Nodeid;
36 import org.tmatesoft.hg.repo.HgChangelog; 34 import org.tmatesoft.hg.repo.HgChangelog;
37 import org.tmatesoft.hg.repo.HgRemoteRepository.RemoteBranch; 35 import org.tmatesoft.hg.repo.HgRemoteRepository.RemoteBranch;
38 import org.tmatesoft.hg.repo.HgRepository; 36 import org.tmatesoft.hg.repo.HgRepository;
305 303
306 private void populate(int root, int head, int[] data, int[] finalSequence) { 304 private void populate(int root, int head, int[] data, int[] finalSequence) {
307 for (int i = 1, x = 0; root+i < head; i = i << 1, x++) { 305 for (int i = 1, x = 0; root+i < head; i = i << 1, x++) {
308 int value = data[x]; 306 int value = data[x];
309 int value_check = root+i; 307 int value_check = root+i;
310 Assert.assertEquals(value, value_check); 308 if (value != value_check) {
309 throw new IllegalStateException();
310 }
311 int wordIx = (root + i) >>> 5; 311 int wordIx = (root + i) >>> 5;
312 int bitIx = (root + i) & 0x1f; 312 int bitIx = (root + i) & 0x1f;
313 finalSequence[wordIx] |= 1 << (31-bitIx); 313 finalSequence[wordIx] |= 1 << (31-bitIx);
314 } 314 }
315 } 315 }