Skip navigation links
SVNKit Home
org.tmatesoft.svn.core.wc2

Class SvnDiff

    • Method Detail

      • setSource

        public void setSource(SvnTarget source,
                              SVNRevision start,
                              SVNRevision end)
        Sets the diff's source with start and end revisions for one-source type of operation.
        Parameters:
        source - source of the diff
        start - start revision of the diff
        end - end revision of the diff
      • setSources

        public void setSources(SvnTarget source1,
                               SvnTarget source2)
        Sets both diff's sources.
        Parameters:
        source1 - first source of the diff
        source2 - second source of the diff
      • getSource

        public SvnTarget getSource()
        Gets the diff's source with start and end revisions for one-target type of operation.
        Returns:
        source of the diff
      • getStartRevision

        public SVNRevision getStartRevision()
      • getFirstSource

        public SvnTarget getFirstSource()
      • getSecondSource

        public SvnTarget getSecondSource()
      • setRelativeToDirectory

        public void setRelativeToDirectory(java.io.File relativeToDirectory)
      • getRelativeToDirectory

        public java.io.File getRelativeToDirectory()
      • setDiffGenerator

        public void setDiffGenerator(ISVNDiffGenerator diffGenerator)
        Sets operation's diff generator of type ISVNDiffGenerator. Used for compatibility with 1.6 version.
        Parameters:
        diffGenerator - diff generator of the operation of type ISVNDiffGenerator
      • setDiffGenerator

        public void setDiffGenerator(ISvnDiffGenerator diffGenerator)
        Sets operation's diff generator.
        Parameters:
        diffGenerator - diff generator of the operation
      • getDiffOptions

        public SVNDiffOptions getDiffOptions()
        Returns the operation's diff options controlling white-spaces and eol-styles.
        Returns:
        diff options of the operation
      • setDiffOptions

        public void setDiffOptions(SVNDiffOptions diffOptions)
        Sets the operation's diff options controlling white-spaces and eol-styles.
        Parameters:
        diffOptions - diff options of the operation
      • getOutput

        public java.io.OutputStream getOutput()
        Returns output stream where the differences will be written to.
        Returns:
        output stream of the diff's result
      • setOutput

        public void setOutput(java.io.OutputStream output)
        Sets output stream where the differences will be written to.
        Parameters:
        output - output stream of the diff's result
      • isIgnoreAncestry

        public boolean isIgnoreAncestry()
        Returns the paths ancestry should not be noticed while calculating differences.
        Returns:
        true if the paths ancestry should not be noticed while calculating differences, otherwise false
        See Also:
        setIgnoreAncestry(boolean)
      • setIgnoreAncestry

        public void setIgnoreAncestry(boolean ignoreAncestry)
        Sets whether or not items being diffed should be checked for relatedness first. Unrelated items are typically transmitted to the editor as a deletion of one thing and the addition of another, but if this flag is false, unrelated items will be diffed as if they were related.
        Parameters:
        ignoreAncestry - true if the paths ancestry should not be noticed while calculating differences, otherwise false
      • isNoDiffDeleted

        public boolean isNoDiffDeleted()
        Returns whether to generate differences for deleted files. In 1.6 version it was ISVNDiffGenerator.isDiffDeleted().
        Returns:
        true if deleted files should not be diffed, otherwise false
      • setNoDiffDeleted

        public void setNoDiffDeleted(boolean noDiffDeleted)
        Sets whether to generate differences for deleted files. In 1.6 version it was ISVNDiffGenerator.setDiffDeleted(boolean).
        Parameters:
        noDiffDeleted - true if deleted files should not be diffed, otherwise false
      • isShowCopiesAsAdds

        public boolean isShowCopiesAsAdds()
        Returns whether to report copies and moves as it were adds.
        Returns:
        true if copies and moves should be reported as adds, otherwise false
        Since:
        1.7, SVN 1.7
      • setShowCopiesAsAdds

        public void setShowCopiesAsAdds(boolean showCopiesAsAdds)
        Sets whether to report copies and moves as it were adds.
        Parameters:
        showCopiesAsAdds - true if copies and moves should be reported as adds, otherwise false
        Since:
        1.7, SVN 1.7
      • isIgnoreContentType

        public boolean isIgnoreContentType()
      • setIgnoreContentType

        public void setIgnoreContentType(boolean ignoreContentType)
      • isUseGitDiffFormat

        public boolean isUseGitDiffFormat()
        Returns whether to report in Git diff format.
        Returns:
        true if report should be in report in Git diff format, otherwise false
        Since:
        1.7
      • setUseGitDiffFormat

        public void setUseGitDiffFormat(boolean useGitDiffFormat)
        Sets whether to report in Git diff format.
        Parameters:
        useGitDiffFormat - true if report should be in report in Git diff format, otherwise false
        Since:
        1.7
      • isChangesWorkingCopy

        public boolean isChangesWorkingCopy()
        Gets whether the operation changes working copy
        Overrides:
        isChangesWorkingCopy in class SvnOperation<java.lang.Void>
        Returns:
        true if the operation changes the working copy, otherwise false

Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.