/** * Delegates the execution to another updater. This is most often useful to fall back to the fresh check out * by using {@link CheckoutUpdater}. */ protected final List<External> delegateTo(WorkspaceUpdater wu) throws IOException, InterruptedException { return delegateTo(wu.createTask()); }
protected List<External> delegateTo(UpdateTask t) throws IOException, InterruptedException { t.manager = this.manager; t.authProvider = this.authProvider; t.queueTime = this.queueTime; t.buildTime = this.buildTime; t.listener = this.listener; t.locations = this.locations; t.revisionParameterAction = this.revisionParameterAction; t.ws = this.ws; t.revisionPolicy = this.revisionPolicy; return t.perform(); }
@Test public void testRevisionFromRevisionParametersOverrideTimestamp() { UpdateTask updateTask = createUpdateTask(); updateTask.revisions = new RevisionParameterAction(new SubversionSCM.SvnInfo("remote", 4711)); ModuleLocation l = new ModuleLocation("remote", "local"); SVNRevision revision = updateTask.getRevision(l); assertEquals(4711L, revision.getNumber()); assertNull(revision.getDate()); }
/** * Delegates the execution to another updater. This is most often useful to fall back to the fresh check out * by using {@link CheckoutUpdater}. */ protected final List<External> delegateTo(WorkspaceUpdater wu) throws IOException, InterruptedException { return delegateTo(wu.createTask()); }
/** * Delegates the execution to another updater. This is most often useful to fall back to the fresh check out * by using {@link CheckoutUpdater}. */ protected final List<External> delegateTo(WorkspaceUpdater wu) throws IOException, InterruptedException { return delegateTo(wu.createTask()); }
protected List<External> delegateTo(UpdateTask t) throws IOException, InterruptedException { t.manager = this.manager; t.authProvider = this.authProvider; t.queueTime = this.queueTime; t.buildTime = this.buildTime; t.listener = this.listener; t.locations = this.locations; t.revisionParameterAction = this.revisionParameterAction; t.ws = this.ws; t.revisionPolicy = this.revisionPolicy; return t.perform(); }
@Test public void testRevisionInUrlOverridesEverything_HEAD() { UpdateTask updateTask = createUpdateTask(); updateTask.revisions = new RevisionParameterAction(new SubversionSCM.SvnInfo("remote", 4711)); ModuleLocation l = new ModuleLocation("remote@HEAD", "local"); SVNRevision revision = updateTask.getRevision(l); assertEquals(SVNRevision.HEAD.getName(), revision.getName()); assertEquals(-1L, revision.getNumber()); assertNull(revision.getDate()); }
@Test public void testGetRevisionFromTimestamp() { UpdateTask updateTask = createUpdateTask(); ModuleLocation l = new ModuleLocation("remote", "local"); SVNRevision revision = updateTask.getRevision(l); assertEquals(NOW, revision.getDate()); assertEquals(-1L, revision.getNumber()); }
protected List<External> delegateTo(UpdateTask t) throws IOException, InterruptedException { t.manager = this.manager; t.clientManager = this.clientManager; t.authProvider = this.authProvider; t.timestamp = this.timestamp; t.listener = this.listener; t.location = this.location; t.revisions = this.revisions; t.ws = this.ws; t.quietOperation = this.quietOperation; return t.perform(); }
@Test public void testRevisionInUrlOverridesEverything() { UpdateTask updateTask = createUpdateTask(); updateTask.revisions = new RevisionParameterAction(new SubversionSCM.SvnInfo("remote", 4711)); ModuleLocation l = new ModuleLocation("remote@12345", "local"); SVNRevision revision = updateTask.getRevision(l); assertEquals(12345L, revision.getNumber()); assertNull(revision.getDate()); }