when P4DISABLESYNC is set it to environment, sync is not happening but changeset taking the latest changes in the respective branch.
I am using P4DISABLECHANGELOG and P4DISABLESYNC env variable, in a job, p4 is not syncing the actual code from depot, but taking latest CL which is not sycned to workspace from the below command.
p4 changes -s submitted -m 1 ///...
i believe, we should not take the latest changeset when we have P4DISABLESYNC variable set. or let me know how to solve this issue if you have any idea to resolve the same.
can some one please take a look.
PerforceSCM.java : line 1009
//use the latest submitted change from workspace, or depot
try {
List<Integer> workspaceChanges = depot.getChanges().getChangeNumbers(p4WorkspacePath, 0, 1);
if (workspaceChanges != null && !workspaceChanges.isEmpty())
else {
List<Integer> depotChanges = depot.getChanges().getChangeNumbers("//...", 0, 1);
if (depotChanges != null && !depotChanges.isEmpty())
}