@Test public void testLatestPushAndUncommitted() throws SourceControlException { RevisionScope<ObjectId> scope = revisionResolver.resolve(DiffConstants.LATEST_PUSH, DiffConstants.LOCAL_CHANGES_NOT_COMMITTED); assertNotNull(scope); assertNotNull(scope.getFrom()); assertNotEquals(ObjectId.zeroId(), scope.getFrom()); assertNotNull(scope.getTo()); assertEquals(ObjectId.zeroId(), scope.getTo()); }
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);  }