All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.capitalone.dashboard.collector.SubversionClient Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
package com.capitalone.dashboard.collector;

import com.capitalone.dashboard.model.Commit;
import com.capitalone.dashboard.model.SubversionRepo;

import java.util.Date;
import java.util.List;

/**
 * Client for fetching commit history from Subversion
 */
public interface SubversionClient {

    /**
     * Fetch all of the commits for the provided SubversionRepo.
     *
     * @param repo SubversionRepo
     * @param startRevision starting revision number
     * @return all commits in repo
     */
    List getCommits(SubversionRepo repo, long startRevision);

    /**
     * Find the revision number closest to the supplied date.
     *
     * @param url url of subversion repository
     * @param revisionDate revision date
     * @return revision number
     */
    long getRevisionClosestTo(String url, Date revisionDate);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy