P4Java sync to head revision

708 Views Asked by At

The Sync API in P4Java is pretty straightforward right?

client.sync(FileSpecBuilder.makeFileSpecList("//depot/test/..."), new SyncOptions(forcesync, false, false, false));

The problem is that, when "forcesync" is true, it works well. However, when it's false, the sync operation does NOT get latest revision, even though I add "#head" after "//depot/test/...".

Could you please help me on this?

Thanks a lot, Michael

0

There are 0 best solutions below