I want a quick solution that does not require power synchronization, which will put the specified directory in the initial state of the repository.
- the same files can be deleted from disk
- the same files can be added from disk
- some files may be modified on disk
- some files may be marked for deletion, addition or alteration in perforce
All I want to do is make sure that after executing the command I will not have any of this.
p4 -f sync not an option, I need a faster solution that minimizes network usage.
Just in case someone asks, the proxy server is not discussed.
I know the partial solution is:
p4 diff -sd -se //clientspec/dir/... | p4 -x - revert
The problem is that this does not delete files added to the above tracks that are not in the perforce files that I want to delete from disk.
In addition, I need a multi-board or cross-platform solution - it should work on Windows, OS X and Linux.
perforce
sorin
source share