Minor cleanup.

This commit is contained in:
Brian Ernst 2020-08-12 15:05:50 -07:00
parent 3adaf471c1
commit 3aa1373758
3 changed files with 11 additions and 7 deletions

View file

@ -4,11 +4,9 @@
# python_version : 2.7.6 and 3.4.0
# =================================
# todo: switch to `p4 fstat ...`, and parse the output for clientFile and cache it.
# todo: have a backup feature, make sure files are moved to the recycle bin or a temporary file.
# todo: switch to faster method of calling p4 fstat on an entire directory and parsing it's output
# todo: add option of using send2trash
# todo: buffer output, after exceeding a certain amount print to the output.
# todo: switch to faster method of calling p4 fstat on an entire directory and parsing it's output
# todo: allow logging output besides console output, or redirection altogether
from p4Helper import *
@ -55,7 +53,8 @@ def main( args ):
# TODO: push this off to a thread and walk the directory so we get a headstart.
files_in_depot = get_client_set( directory )
c.writeflush( "|Done." )
if not options.quiet:
c.writeflush( "|Done." )
# TODO: push a os.walk request off to a thread to build a list of files in the directory; create batch based on directory?