comparison src/org/tmatesoft/hg/core/HgLogCommand.java @ 490:b3c16d1aede0

Refactoring: move HgRepository's implementation aspects to Internals (which is now its imlementation counterpart and primary repository class to be used by other parts of the library)
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 16 Aug 2012 17:08:34 +0200
parents d78cb5ca3053
children a6435c1a42d0
comparison
equal deleted inserted replaced
489:9c0138cda59a 490:b3c16d1aede0
33 import org.tmatesoft.hg.internal.IntMap; 33 import org.tmatesoft.hg.internal.IntMap;
34 import org.tmatesoft.hg.internal.IntVector; 34 import org.tmatesoft.hg.internal.IntVector;
35 import org.tmatesoft.hg.repo.HgChangelog; 35 import org.tmatesoft.hg.repo.HgChangelog;
36 import org.tmatesoft.hg.repo.HgChangelog.RawChangeset; 36 import org.tmatesoft.hg.repo.HgChangelog.RawChangeset;
37 import org.tmatesoft.hg.repo.HgDataFile; 37 import org.tmatesoft.hg.repo.HgDataFile;
38 import org.tmatesoft.hg.repo.HgInternals;
39 import org.tmatesoft.hg.repo.HgInvalidControlFileException; 38 import org.tmatesoft.hg.repo.HgInvalidControlFileException;
40 import org.tmatesoft.hg.repo.HgInvalidRevisionException; 39 import org.tmatesoft.hg.repo.HgInvalidRevisionException;
41 import org.tmatesoft.hg.repo.HgInvalidStateException; 40 import org.tmatesoft.hg.repo.HgInvalidStateException;
42 import org.tmatesoft.hg.repo.HgParentChildMap; 41 import org.tmatesoft.hg.repo.HgParentChildMap;
43 import org.tmatesoft.hg.repo.HgRepository; 42 import org.tmatesoft.hg.repo.HgRepository;
545 sanity = true; 544 sanity = true;
546 break; 545 break;
547 } 546 }
548 } 547 }
549 if (!sanity) { 548 if (!sanity) {
550 HgInternals.getContext(repo).getLog().dump(getClass(), Error, "Index of revision %d:%s doesn't match any of requested", cs.getRevisionIndex(), cs.getNodeid().shortNotation()); 549 repo.getSessionContext().getLog().dump(getClass(), Error, "Index of revision %d:%s doesn't match any of requested", cs.getRevisionIndex(), cs.getNodeid().shortNotation());
551 } 550 }
552 assert sanity; 551 assert sanity;
553 } 552 }
554 } 553 }
555 return rv; 554 return rv;