@Test public void testComputeChangeScope() throws SourceControlException { RevisionScope<ObjectId> scope = revisionResolver.resolve("fc776fe5e50", "e6f7c3d2954d6"); ChangeScope<Change> changeScope = jGitChangeScopeResolver.getChangeScope(scope); assertNotNull(changeScope); assertTrue(changeScope.getAllAffectedClasses().size() > 0); }
@Override public ChangeScope<Change> getChangeScope(RevisionScope<ObjectId> revisionScope) throws SourceControlException { final ChangeScope<Change> scope = new ChangeScopeImpl(); try { List<DiffEntry> filtered = getFilteredEntries(revisionScope); for (DiffEntry entry : filtered) { EditList editList = diffFormatter.toFileHeader(entry).toEditList(); if (!editList.isEmpty()) { computeDiffEntry(entry, editList, revisionScope, scope); } } } catch (IOException e) { throw new SourceControlException(ErrorMessages.SCAN_REVISIONS_EXCEPTION, e); } return scope; }
JGitChangeScopeResolver implements ChangeScopeResolver { @Override public ChangeScope<Change> getChangeScope(RevisionScope<ObjectId> revisionScope) throws SourceControlException { final ChangeScope<Change> scope = new ChangeScopeImpl(); try { List<DiffEntry> filtered = getFilteredEntries(revisionScope); for (DiffEntry entry : filtered) { EditList editList = diffFormatter.toFileHeader(entry).toEditList(); if (!editList.isEmpty()) { computeDiffEntry(entry, editList, revisionScope, scope); } } } catch (IOException e) { throw new SourceControlException(ErrorMessages.SCAN_REVISIONS_EXCEPTION, e); } return scope; } }
JGitChangeScopeResolver implements ChangeScopeResolver { @Override public ChangeScope<Change> getChangeScope(RevisionScope<ObjectId> revisionScope) throws SourceControlException { final ChangeScope<Change> scope = new ChangeScopeImpl(); try { List<DiffEntry> filtered = getFilteredEntries(revisionScope); for (DiffEntry entry : filtered) { EditList editList = diffFormatter.toFileHeader(entry).toEditList(); if (!editList.isEmpty()) { computeDiffEntry(entry, editList, revisionScope, scope); } } } catch (IOException e) { throw new SourceControlException(ErrorMessages.SCAN_REVISIONS_EXCEPTION, e); } return scope; } JGitChangeScopeResolver(Repository repository, SourceControlFilter... filters); }
JGitChangeScopeResolver implements ChangeScopeResolver { @Override public ChangeScope<Change> getChangeScope(RevisionScope<ObjectId> revisionScope) throws SourceControlException { final ChangeScope<Change> scope = new ChangeScopeImpl(); try { List<DiffEntry> filtered = getFilteredEntries(revisionScope); for (DiffEntry entry : filtered) { EditList editList = diffFormatter.toFileHeader(entry).toEditList(); if (!editList.isEmpty()) { computeDiffEntry(entry, editList, revisionScope, scope); } } } catch (IOException e) { throw new SourceControlException(ErrorMessages.SCAN_REVISIONS_EXCEPTION, e); } return scope; } JGitChangeScopeResolver(Repository repository, SourceControlFilter... filters); @Override ChangeScope<Change> getChangeScope(RevisionScope<ObjectId> revisionScope); }
JGitChangeScopeResolver implements ChangeScopeResolver { @Override public ChangeScope<Change> getChangeScope(RevisionScope<ObjectId> revisionScope) throws SourceControlException { final ChangeScope<Change> scope = new ChangeScopeImpl(); try { List<DiffEntry> filtered = getFilteredEntries(revisionScope); for (DiffEntry entry : filtered) { EditList editList = diffFormatter.toFileHeader(entry).toEditList(); if (!editList.isEmpty()) { computeDiffEntry(entry, editList, revisionScope, scope); } } } catch (IOException e) { throw new SourceControlException(ErrorMessages.SCAN_REVISIONS_EXCEPTION, e); } return scope; } JGitChangeScopeResolver(Repository repository, SourceControlFilter... filters); @Override ChangeScope<Change> getChangeScope(RevisionScope<ObjectId> revisionScope);  }