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