Skip to content

Commit

Permalink
don't needlessly update the workspace root when polling for new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Petti committed Mar 29, 2012
1 parent 5d43ac2 commit 11249ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/plugins/perforce/PerforceSCM.java
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ else if (project.getLastBuild()!=null) {
logger.println("Using node: " + buildNode.getDisplayName());
}

Workspace p4workspace = getPerforceWorkspace(project, substituteParameters(projectPath, subst), depot, buildNode, null, launcher, workspace, listener, false);
Workspace p4workspace = getPerforceWorkspace(project, substituteParameters(projectPath, subst), depot, buildNode, null, launcher, workspace, listener, true);
saveWorkspaceIfDirty(depot, p4workspace, logger);

int lastChangeNumber = baseline.getRevision();
Expand Down

0 comments on commit 11249ca

Please sign in to comment.