# HG changeset patch # User Artem Tikhomirov # Date 1301445795 -7200 # Node ID b1de83ffa7f86e030b72e1fb8d25c3c280e225c7 # Parent 4bf061a7c0018c677db89751b99c55ad5a64c81a Build shall succeed with no precompiled classes, too diff -r 4bf061a7c001 -r b1de83ffa7f8 build.xml --- a/build.xml Tue Mar 29 02:20:02 2011 +0200 +++ b/build.xml Wed Mar 30 02:43:15 2011 +0200 @@ -17,12 +17,12 @@ --> - Build, test and showcase hg4j + Build, test and showcase hg4j Targets: * build - compile and jar binary and source bundles * tests - run tests with JUnit * samples - few command-line counterparts to demonstrate basic capabiliites - + @@ -111,7 +111,12 @@ - + + + + + + @@ -120,7 +125,7 @@ - + diff -r 4bf061a7c001 -r b1de83ffa7f8 cmdline/org/tmatesoft/hg/console/Incoming.java --- a/cmdline/org/tmatesoft/hg/console/Incoming.java Tue Mar 29 02:20:02 2011 +0200 +++ b/cmdline/org/tmatesoft/hg/console/Incoming.java Wed Mar 30 02:43:15 2011 +0200 @@ -30,8 +30,6 @@ import java.util.List; import java.util.Map.Entry; -import junit.framework.Assert; - import org.tmatesoft.hg.core.Nodeid; import org.tmatesoft.hg.repo.HgChangelog; import org.tmatesoft.hg.repo.HgRemoteRepository.RemoteBranch; @@ -307,7 +305,9 @@ for (int i = 1, x = 0; root+i < head; i = i << 1, x++) { int value = data[x]; int value_check = root+i; - Assert.assertEquals(value, value_check); + if (value != value_check) { + throw new IllegalStateException(); + } int wordIx = (root + i) >>> 5; int bitIx = (root + i) & 0x1f; finalSequence[wordIx] |= 1 << (31-bitIx);