Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgLogCommand.java @ 456:909306e412e2
Refactor LogFacility and SessionContext, better API for both
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Mon, 18 Jun 2012 16:54:00 +0200 |
| parents | 1fc0da631200 |
| children | d78cb5ca3053 |
comparison
equal
deleted
inserted
replaced
| 454:36fd1fd06492 | 456:909306e412e2 |
|---|---|
| 15 * contact TMate Software at support@hg4j.com | 15 * contact TMate Software at support@hg4j.com |
| 16 */ | 16 */ |
| 17 package org.tmatesoft.hg.core; | 17 package org.tmatesoft.hg.core; |
| 18 | 18 |
| 19 import static org.tmatesoft.hg.repo.HgRepository.TIP; | 19 import static org.tmatesoft.hg.repo.HgRepository.TIP; |
| 20 import static org.tmatesoft.hg.util.LogFacility.Severity.Error; | |
| 20 | 21 |
| 21 import java.util.ArrayList; | 22 import java.util.ArrayList; |
| 22 import java.util.Arrays; | 23 import java.util.Arrays; |
| 23 import java.util.Calendar; | 24 import java.util.Calendar; |
| 24 import java.util.Collection; | 25 import java.util.Collection; |
| 35 import org.tmatesoft.hg.repo.HgChangelog.RawChangeset; | 36 import org.tmatesoft.hg.repo.HgChangelog.RawChangeset; |
| 36 import org.tmatesoft.hg.repo.HgDataFile; | 37 import org.tmatesoft.hg.repo.HgDataFile; |
| 37 import org.tmatesoft.hg.repo.HgInternals; | 38 import org.tmatesoft.hg.repo.HgInternals; |
| 38 import org.tmatesoft.hg.repo.HgInvalidControlFileException; | 39 import org.tmatesoft.hg.repo.HgInvalidControlFileException; |
| 39 import org.tmatesoft.hg.repo.HgInvalidStateException; | 40 import org.tmatesoft.hg.repo.HgInvalidStateException; |
| 41 import org.tmatesoft.hg.repo.HgParentChildMap; | |
| 40 import org.tmatesoft.hg.repo.HgRepository; | 42 import org.tmatesoft.hg.repo.HgRepository; |
| 41 import org.tmatesoft.hg.repo.HgRuntimeException; | 43 import org.tmatesoft.hg.repo.HgRuntimeException; |
| 42 import org.tmatesoft.hg.repo.HgStatusCollector; | 44 import org.tmatesoft.hg.repo.HgStatusCollector; |
| 43 import org.tmatesoft.hg.repo.HgParentChildMap; | |
| 44 import org.tmatesoft.hg.util.CancelSupport; | 45 import org.tmatesoft.hg.util.CancelSupport; |
| 45 import org.tmatesoft.hg.util.CancelledException; | 46 import org.tmatesoft.hg.util.CancelledException; |
| 46 import org.tmatesoft.hg.util.Pair; | 47 import org.tmatesoft.hg.util.Pair; |
| 47 import org.tmatesoft.hg.util.Path; | 48 import org.tmatesoft.hg.util.Path; |
| 48 import org.tmatesoft.hg.util.ProgressSupport; | 49 import org.tmatesoft.hg.util.ProgressSupport; |
| 543 sanity = true; | 544 sanity = true; |
| 544 break; | 545 break; |
| 545 } | 546 } |
| 546 } | 547 } |
| 547 if (!sanity) { | 548 if (!sanity) { |
| 548 HgInternals.getContext(repo).getLog().error(getClass(), "Index of revision %d:%s doesn't match any of requested", cs.getRevisionIndex(), cs.getNodeid().shortNotation()); | 549 HgInternals.getContext(repo).getLog().dump(getClass(), Error, "Index of revision %d:%s doesn't match any of requested", cs.getRevisionIndex(), cs.getNodeid().shortNotation()); |
| 549 } | 550 } |
| 550 assert sanity; | 551 assert sanity; |
| 551 } | 552 } |
| 552 } | 553 } |
| 553 return rv; | 554 return rv; |
