Class SvnLastChanges

java.lang.Object
com.github.jenkins.lastchanges.impl.SvnLastChanges
All Implemented Interfaces:
VCSChanges<File,org.tmatesoft.svn.core.wc.SVNRevision>

public class SvnLastChanges extends Object implements VCSChanges<File,org.tmatesoft.svn.core.wc.SVNRevision>
  • Constructor Details

    • SvnLastChanges

      public SvnLastChanges()
  • Method Details

    • getInstance

      public static SvnLastChanges getInstance()
    • getInstance

      public static SvnLastChanges getInstance(org.tmatesoft.svn.core.auth.ISVNAuthenticationProvider svnAuthProvider)
    • changesOf

      public LastChanges changesOf(File repository)
      Creates last changes from repository last two revisions
      Specified by:
      changesOf in interface VCSChanges<File,org.tmatesoft.svn.core.wc.SVNRevision>
      Parameters:
      repository - svn repository to get last changes
      Returns:
      LastChanges commit info and svn diff
    • changesOf

      public LastChanges changesOf(File repository, org.tmatesoft.svn.core.wc.SVNRevision currentRevision, org.tmatesoft.svn.core.wc.SVNRevision previousRevision)
      Creates last changes from two revisions of repository
      Specified by:
      changesOf in interface VCSChanges<File,org.tmatesoft.svn.core.wc.SVNRevision>
      Parameters:
      repository - svn repository to get last changes
      Returns:
      LastChanges commit info and svn diff
    • setSvnAuthManager

      public SvnLastChanges setSvnAuthManager(org.tmatesoft.svn.core.auth.ISVNAuthenticationManager svnAuthManager)
    • getLastTagRevision

      public org.tmatesoft.svn.core.wc.SVNRevision getLastTagRevision(File repository)
      Specified by:
      getLastTagRevision in interface VCSChanges<File,org.tmatesoft.svn.core.wc.SVNRevision>
    • resolveCurrentRevision

      public org.tmatesoft.svn.core.wc.SVNRevision resolveCurrentRevision(File svnRepository)
      Specified by:
      resolveCurrentRevision in interface VCSChanges<File,org.tmatesoft.svn.core.wc.SVNRevision>
    • commitInfo

      public CommitInfo commitInfo(File repository, org.tmatesoft.svn.core.wc.SVNRevision revision)
      Specified by:
      commitInfo in interface VCSChanges<File,org.tmatesoft.svn.core.wc.SVNRevision>
    • getCommitsBetweenRevisions

      public List<CommitInfo> getCommitsBetweenRevisions(File svnRepository, org.tmatesoft.svn.core.wc.SVNRevision currentRevision, org.tmatesoft.svn.core.wc.SVNRevision previousRevision)
      Specified by:
      getCommitsBetweenRevisions in interface VCSChanges<File,org.tmatesoft.svn.core.wc.SVNRevision>