Workspace p4workspace = getPerforceWorkspace(project, getEffectiveProjectPath(null, project, buildNode, logger, depot), depot, buildNode, null, launcher, workspace, listener, true);
saveWorkspaceIfDirty(depot, p4workspace, logger);
int lastChangeNumber = baseline.getRevision();
SCMRevisionState repositoryState = getCurrentDepotRevisionState(p4workspace, project, buildNode, depot, logger, lastChangeNumber);
PollingResult.Change change;
if (repositoryState.equals(baseline)) {
change = PollingResult.Change.NONE;
} else {
change = PollingResult.Change.SIGNIFICANT;
}