Conversation
Notices
-
Douglas A. Whitfield (musicman@nu.federati.net)'s status on Friday, 03-Aug-2018 20:37:09 UTC Douglas A. Whitfield Any #python geniuses got any ideas as to why this would work for one call, but not a bulk call?
p4Types = dict ()
print( "Fetching file information..." )
results = p4.run_fstat('-Os', '-F', '^action=delete & ^headAction=delete & ^headAction=move/delete', '...' + extension)
for result in results:
f = result[ 'depotFile' ]
f = p4MarshalString( f )
t = None
if 'type' in result:
t = result[ 'type' ]
elif 'headType' in result:
t = result[ 'headType' ]
t = p4MarshalString( t )
if not t in p4Types:
p4Types[ t ] = list ()
p4Types[ t ].append( f )
full script at https://github.com/gorlak/p4scripts/blob/master/p4type.py