Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/KeywordFilter.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 | 909306e412e2 |
children | cf200271439a |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/KeywordFilter.java Mon Aug 13 19:24:29 2012 +0200 +++ b/src/org/tmatesoft/hg/internal/KeywordFilter.java Thu Aug 16 17:08:34 2012 +0200 @@ -25,7 +25,6 @@ import org.tmatesoft.hg.core.Nodeid; import org.tmatesoft.hg.repo.HgChangelog.RawChangeset; -import org.tmatesoft.hg.repo.HgInternals; import org.tmatesoft.hg.repo.HgRepository; import org.tmatesoft.hg.repo.HgRuntimeException; import org.tmatesoft.hg.util.Pair; @@ -265,7 +264,7 @@ int csetRev = repo.getFileNode(path).getChangesetRevisionIndex(HgRepository.TIP); return repo.getChangelog().getRevision(csetRev).shortNotation(); } catch (HgRuntimeException ex) { - HgInternals.getContext(repo).getLog().dump(getClass(), Error, ex, null); + repo.getSessionContext().getLog().dump(getClass(), Error, ex, null); return Nodeid.NULL.shortNotation(); // XXX perhaps, might return anything better? Not sure how hg approaches this. } } @@ -274,7 +273,7 @@ try { return getChangeset().user(); } catch (HgRuntimeException ex) { - HgInternals.getContext(repo).getLog().dump(getClass(), Error, ex, null); + repo.getSessionContext().getLog().dump(getClass(), Error, ex, null); return ""; } } @@ -284,7 +283,7 @@ try { d = getChangeset().date(); } catch (HgRuntimeException ex) { - HgInternals.getContext(repo).getLog().dump(getClass(), Error, ex, null); + repo.getSessionContext().getLog().dump(getClass(), Error, ex, null); d = new Date(0l); } return String.format("%tY/%<tm/%<td %<tH:%<tM:%<tS", d);