@Test(expected = SourceControlException.class) public void testInvalidCommit() throws SourceControlException { revisionResolver.resolve("AAAAAA", DiffConstants.LOCAL_CHANGES_NOT_COMMITTED); }
public RevisionScope<ObjectId> resolve(String fromRev, String toRev) throws SourceControlException { ObjectId from = resolve(fromRev); ObjectId to = resolve(toRev); validate(from, to); return new SCMRevisionScope(from, to); }
RevisionResolver { public RevisionScope<ObjectId> resolve(String fromRev, String toRev) throws SourceControlException { ObjectId from = resolve(fromRev); ObjectId to = resolve(toRev); validate(from, to); return new SCMRevisionScope(from, to); } }
RevisionResolver { public RevisionScope<ObjectId> resolve(String fromRev, String toRev) throws SourceControlException { ObjectId from = resolve(fromRev); ObjectId to = resolve(toRev); validate(from, to); return new SCMRevisionScope(from, to); } RevisionResolver(Repository repository); }
RevisionResolver { public RevisionScope<ObjectId> resolve(String fromRev, String toRev) throws SourceControlException { ObjectId from = resolve(fromRev); ObjectId to = resolve(toRev); validate(from, to); return new SCMRevisionScope(from, to); } RevisionResolver(Repository repository); RevisionScope<ObjectId> resolve(String fromRev, String toRev); }
RevisionResolver { public RevisionScope<ObjectId> resolve(String fromRev, String toRev) throws SourceControlException { ObjectId from = resolve(fromRev); ObjectId to = resolve(toRev); validate(from, to); return new SCMRevisionScope(from, to); } RevisionResolver(Repository repository); RevisionScope<ObjectId> resolve(String fromRev, String toRev);  }