/** * Returns a diff generator to be used in <code>doGetDiff()</code> methods of this class. * If no generator was provided by a caller, <b>SVNLookClient</b> uses a default one * that prints differences in a GNU-style. * * @return a diff generator * @see #setDiffGenerator(ISVNGNUDiffGenerator) */ public ISVNGNUDiffGenerator getDiffGenerator() { if (myDiffGenerator == null) { DefaultSVNGNUDiffGenerator defaultDiffGenerator = new DefaultSVNGNUDiffGenerator(); defaultDiffGenerator.setOptions(getOptions()); myDiffGenerator = defaultDiffGenerator; } return myDiffGenerator; }
/** * Returns a diff generator to be used in <code>doGetDiff()</code> methods of this class. * If no generator was provided by a caller, <b>SVNLookClient</b> uses a default one * that prints differences in a GNU-style. * * @return a diff generator * @see #setDiffGenerator(ISVNGNUDiffGenerator) */ public ISVNGNUDiffGenerator getDiffGenerator() { if (myDiffGenerator == null) { DefaultSVNGNUDiffGenerator defaultDiffGenerator = new DefaultSVNGNUDiffGenerator(); defaultDiffGenerator.setOptions(getOptions()); myDiffGenerator = defaultDiffGenerator; } return myDiffGenerator; }
/** * Returns a diff generator to be used in <code>doGetDiff()</code> methods of this class. * If no generator was provided by a caller, <b>SVNLookClient</b> uses a default one * that prints differences in a GNU-style. * * @return a diff generator * @see #setDiffGenerator(ISVNGNUDiffGenerator) */ public ISVNGNUDiffGenerator getDiffGenerator() { if (myDiffGenerator == null) { DefaultSVNGNUDiffGenerator defaultDiffGenerator = new DefaultSVNGNUDiffGenerator(); defaultDiffGenerator.setOptions(getOptions()); myDiffGenerator = defaultDiffGenerator; } return myDiffGenerator; }
String propName = (String) propNamesIter.next(); SVNPropertyData propData = new SVNPropertyData(propName, props.getSVNPropertyValue(propName), client.getOptions()); SVNPropertyValue propValue = propData.getValue(); if (environment.isVerbose()) {
String propName = (String) propNamesIter.next(); SVNPropertyData propData = new SVNPropertyData(propName, props.getSVNPropertyValue(propName), client.getOptions()); SVNPropertyValue propValue = propData.getValue(); if (environment.isVerbose()) {
public void run() throws SVNException { SVNLookCommandEnvironment environment = getSVNLookEnvironment(); SVNLookClient client = environment.getClientManager().getLookClient(); DefaultSVNGNUDiffGenerator defaultDiffGenerator = new DefaultSVNGNUDiffGenerator(); defaultDiffGenerator.setOptions(client.getOptions()); defaultDiffGenerator.setDiffOptions(environment.getDiffOptions()); client.setDiffGenerator(defaultDiffGenerator); if (environment.isRevision()) { client.doGetDiff(environment.getRepositoryFile(), getRevisionObject(), !environment.isNoDiffDeleted(), !environment.isNoDiffAdded(), environment.isDiffCopyFrom(), environment.getOut()); } else { client.doGetDiff(environment.getRepositoryFile(), environment.getTransaction(), !environment.isNoDiffDeleted(), !environment.isNoDiffAdded(), environment.isDiffCopyFrom(), environment.getOut()); } }
public void run() throws SVNException { SVNLookCommandEnvironment environment = getSVNLookEnvironment(); SVNLookClient client = environment.getClientManager().getLookClient(); DefaultSVNGNUDiffGenerator defaultDiffGenerator = new DefaultSVNGNUDiffGenerator(); defaultDiffGenerator.setOptions(client.getOptions()); defaultDiffGenerator.setDiffOptions(environment.getDiffOptions()); client.setDiffGenerator(defaultDiffGenerator); if (environment.isRevision()) { client.doGetDiff(environment.getRepositoryFile(), getRevisionObject(), !environment.isNoDiffDeleted(), !environment.isNoDiffAdded(), environment.isDiffCopyFrom(), environment.getOut()); } else { client.doGetDiff(environment.getRepositoryFile(), environment.getTransaction(), !environment.isNoDiffDeleted(), !environment.isNoDiffAdded(), environment.isDiffCopyFrom(), environment.getOut()); } }