Fixed up path limitation issue with p4.
This commit is contained in:
parent
a5f82d5e00
commit
d5dc8155f5
4 changed files with 80 additions and 3 deletions
|
@ -26,7 +26,6 @@ class P4SyncMissing:
|
|||
parser.add_option( "-t", "--threads", dest="thread_count", help="Number of threads to crawl your drive and poll p4.", default=12 )
|
||||
parser.add_option( "-q", "--quiet", action="store_true", dest="quiet", help="This overrides verbose", default=False )
|
||||
parser.add_option( "-v", "--verbose", action="store_true", dest="verbose", default=False )
|
||||
parser.add_option( "-i", "--interactive", action="store_true", dest="interactive", default=False )
|
||||
|
||||
( options, args ) = parser.parse_args( args )
|
||||
|
||||
|
@ -45,7 +44,7 @@ class P4SyncMissing:
|
|||
return False
|
||||
def sync( files ):
|
||||
files_len = len(files)
|
||||
files_flat = ' '.join('"' + f + '"' for f in files)
|
||||
files_flat = ' '.join('"' + p4FriendlyPath( f ) + '"' for f in files)
|
||||
|
||||
if options.verbose:
|
||||
files_len = len(files)
|
||||
|
@ -82,7 +81,7 @@ class P4SyncMissing:
|
|||
}
|
||||
|
||||
threads = [ ]
|
||||
thread_count = options.thread_count if options.thread_count > 0 else multiprocessing.cpu_count( ) + threads
|
||||
thread_count = options.thread_count if options.thread_count > 0 else multiprocessing.cpu_count( ) + options.thread_count
|
||||
|
||||
count = 0
|
||||
total = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue