comparison src/org/tmatesoft/hg/internal/RepositoryComparator.java @ 383:994b5813a925

Few comments
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 13 Feb 2012 12:47:24 +0100
parents 2fadf8695f8a
children 9c9c442b5f2e
comparison
equal deleted inserted replaced
382:82336b7c54f4 383:994b5813a925
484 rangeToEntry.clear(); 484 rangeToEntry.clear();
485 } 485 }
486 toQuery.clear(); 486 toQuery.clear();
487 } 487 }
488 if (rootIndex == -1) { 488 if (rootIndex == -1) {
489 throw new HgBadStateException("Shall not happen, provided between output is correct"); // FIXME 489 throw new HgBadStateException("Shall not happen, provided between output is correct"); // FIXME EXCEPTIONS
490 } 490 }
491 result[rootIndex] = branchRoot; 491 result[rootIndex] = branchRoot;
492 boolean resultOk = true; 492 boolean resultOk = true;
493 LinkedList<Nodeid> fromRootToHead = new LinkedList<Nodeid>(); 493 LinkedList<Nodeid> fromRootToHead = new LinkedList<Nodeid>();
494 for (int i = 0; i <= rootIndex; i++) { 494 for (int i = 0; i <= rootIndex; i++) {
501 } 501 }
502 if (debug) { 502 if (debug) {
503 System.out.println("Total queries:" + totalQueries); 503 System.out.println("Total queries:" + totalQueries);
504 } 504 }
505 if (!resultOk) { 505 if (!resultOk) {
506 throw new HgBadStateException("See console for details"); // FIXME 506 throw new HgBadStateException("See console for details"); // FIXME EXCEPTIONS
507 } 507 }
508 return fromRootToHead; 508 return fromRootToHead;
509 } 509 }
510 510
511 /** 511 /**