Sure, I totally agree.
Sorry, I just wasn't clear enough in my previous email.
I meant that your patch suppresses "%s --> %s (%i MB)" line in case "fileSize"
is not available,
while my patch suppresses just "(%i MB)" portion if the "fileSize" is not known.
In other words,
* if "fileSize" is known:
** both yours and mine patches don't change existing behavior;
* if "fileSize" is not known:
** your patch makes streamOneP4File() not print anything;
** my patch makes streamOneP4File() print "%s --> %s".
Hope, I'm clearer this time.
Thank you,
Andrey
From: Thandesha VK <[email protected]>
> *I* think keeping the filesize info is better with --verbose option as
> that gives some clue about the file we are working on. What do you
> think?
> Script has similar checks of key existence at other places where it is
> looking for fileSize.
>
> On Tue, Apr 17, 2018 at 9:22 AM, Andrey Mazo <[email protected]> wrote:
>> Huh, I actually have a slightly different fix for the same issue.
>> It doesn't suppress the corresponding verbose output completely, but just
>> removes the size information from it.
>>
>> Also, I'd mention that the workaround is trivial -- simply omit the
>> "--verbose" option.
>>
>> Andrey Mazo (1):
>> git-p4: fix `sync --verbose` traceback due to 'fileSize'
>>
>> git-p4.py | 8 ++++++--
>> 1 file changed, 6 insertions(+), 2 deletions(-)
>>
>>
>> base-commit: 468165c1d8a442994a825f3684528361727cd8c0
>> --
>> 2.16.1
>>
>
> --
> Thanks & Regards
> Thandesha VK | Cellphone +1 (703) 459-5386