diff --git a/p4SyncMissingFiles.py b/p4SyncMissingFiles.py index f317737..3863dd2 100644 --- a/p4SyncMissingFiles.py +++ b/p4SyncMissingFiles.py @@ -44,9 +44,9 @@ def main( args ): return False def sync( data ): if data is not None and not os.path.exists( data ): - try_call_process( "p4 sync -f " + data ) + subprocess.check_output( "p4 sync -f \"" + data + "\"", shell=False, cwd=None ) if not options.quiet: - c.write( " Synced " + data ) + c.write( " Synced " + os.path.relpath( data, directory ) ) return True commands = { @@ -89,7 +89,8 @@ def main( args ): action = normpath( line[ len( headAction_tag ) : ].strip( ) ) if not any(action == a for a in rejected_actions): if options.verbose: - c.write( " Checking " + os.path.relpath( local_path, directory ) ) + c.write( " Checking " + os.path.relpath( local_path, directory ) ) + # TODO: directories should be batched and synced in parallel queue.put( ( WRK.SYNC, local_path ) ) if line.startswith( clientFile_tag ):