JRProd / TGP2BuildScripts

0 stars 3 forks source link

P4 sync should give some form of feedback #2

Open CAD97 opened 3 years ago

CAD97 commented 3 years ago

https://github.com/JRProd/TGP2BuildScripts/blob/4be947ac8b2873111da7940887c936b183ecc2e0/Scripts/UpdateFromP4.py#L60-L65

This silently (with no log file updates) chugs away at syncing the P4 workspace with no updates to the script user. While not directly problematic, this is not a great user experience. If there's a way to grab info, or pipe through p4's status updates (if they exist), we should print the status of the sync more often than never. Maybe every minute or so, print the number of files remaining to sync (the way P4V shows the remaining number of files on a big sync)?

CAD97 commented 3 years ago

Ah, yes. After it's finished, I got 4.3k lines in my log file at once. (Maybe because it's piping to the log file without flushing?) Definitely not ideal, and would've let me know I was cloning something way different from what I intended earlier had I been able to see it.