comparison test/org/tmatesoft/hg/test/TestAuxUtilities.java @ 473:5c09a9f2e073

Issue 34: incorrect status for a file copy in wc against base rev
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Wed, 11 Jul 2012 22:45:29 +0200
parents 2a0b09eec376
children e74580e24feb
comparison
equal deleted inserted replaced
472:2a0b09eec376 473:5c09a9f2e073
316 } 316 }
317 System.out.printf(", isEmpty:%b\n", !result[i].hasDescendants()); 317 System.out.printf(", isEmpty:%b\n", !result[i].hasDescendants());
318 } 318 }
319 */ 319 */
320 for (int i = 0; i < roots.length; i++) { 320 for (int i = 0; i < roots.length; i++) {
321 System.out.printf("%s & %s = 0x%x\n", toBinaryString(descendantBitset[i]), toBinaryString(~(1<<roots[i])), descendantBitset[i] & ~(1<<roots[i])); 321 // System.out.printf("%s & %s = 0x%x\n", toBinaryString(descendantBitset[i]), toBinaryString(~(1<<roots[i])), descendantBitset[i] & ~(1<<roots[i]));
322 if ((descendantBitset[i] & ~(1<<roots[i])) != 0) { 322 if ((descendantBitset[i] & ~(1<<roots[i])) != 0) {
323 assertTrue(result[i].hasDescendants()); 323 assertTrue(result[i].hasDescendants());
324 } else { 324 } else {
325 assertFalse(result[i].hasDescendants()); 325 assertFalse(result[i].hasDescendants());
326 } 326 }