• L
    git-p4: fixing --changes-block-size handling · 1051ef00
    Luke Diamand 提交于
    The --changes-block-size handling was intended to help when
    a user has a limited "maxscanrows" (see "p4 group"). It used
    "p4 changes -m $maxchanges" to limit the number of results.
    
    Unfortunately, it turns out that the "maxscanrows" and "maxresults"
    limits are actually applied *before* the "-m maxchanges" parameter
    is considered (experimentally).
    
    Fix the block-size handling so that it gets blocks of changes
    limited by revision number ($Start..$Start+$N, etc). This limits
    the number of results early enough that both sets of tests pass.
    
    Note that many other Perforce operations can fail for the same
    reason (p4 print, p4 files, etc) and it's probably not possible
    to workaround this. In the real world, this is probably not
    usually a problem.
    Signed-off-by: NLuke Diamand <luke@diamand.org>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    1051ef00
git-p4.py 122.2 KB