Commits

Sebastian Sdorra committed d3cd21f

revert cloning of command results for performance reasons

Comments (0)

Files changed (3)

scm-core/src/main/java/sonia/scm/repository/api/BlameCommandBuilder.java

 
     if (!disablePreProcessors && (result != null))
     {
-      // clone result to fix pre processor behavior
-      result = result.clone();
       preProcessorUtil.prepareForReturn(repository, result);
     }
 

scm-core/src/main/java/sonia/scm/repository/api/BrowseCommandBuilder.java

 
     if (!disablePreProcessors && (result != null))
     {
-      result = result.clone();
       preProcessorUtil.prepareForReturn(repository, result);
 
       List<FileObject> fileObjects = result.getFiles();

scm-core/src/main/java/sonia/scm/repository/api/LogCommandBuilder.java

 
     if (!disablePreProcessors && (changeset != null))
     {
-      changeset = changeset.clone();
       preProcessorUtil.prepareForReturn(repository, changeset);
     }
 
 
     if (!disablePreProcessors && (cpr != null))
     {
-      cpr = cpr.clone();
       preProcessorUtil.prepareForReturn(repository, cpr);
     }