From 49153babed950396fbe5b8d20eb8fc81c5e8b809 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 18 Feb 2015 15:28:58 -0700 Subject: [PATCH] Fixed output bugs in p4SyncMissingFiles.py. --- p4SyncMissingFiles.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 ):