• Edward Lesmes's avatar
    gclient sync: Add support to apply gerrit refs. · c621b21a
    Edward Lesmes authored
    Mimics bot_update's functionality to apply gerrit refs in gclient
    via --gerrit-ref flags.
    When the patch fails to apply, gclient sync will return exit code 2.
    
    The idea is to move this logic from bot_update to gclient sync to
    deal when patches for projects like ANGLE are tried on Chromium bots.
    This way the patch is applied before recursively parsing and syncing
    ANGLE’s DEPS.chromium file, which doesn't currently happen.
    
    Bug: 643346
    
    Change-Id: I7e2018b3c393a5ac9852b8c3611f906977eeeb18
    Reviewed-on: https://chromium-review.googlesource.com/961605Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
    Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
    c621b21a
gclient_test.py 39.4 KB