Fixed output bugs in p4SyncMissingFiles.py.

This commit is contained in:
unknown 2015-02-18 15:28:58 -07:00
parent 6610e8e357
commit 49153babed
1 changed files with 4 additions and 3 deletions

View File

@ -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 ):