• szager@chromium.org's avatar
    Add --spec to the default parameter list. · e2e03201
    szager@chromium.org authored
    This simplifies some of the git-submodule stuff.  For example, deps2hooks.bat
    can be changed from this:
    
    @echo off
    setlocal
    set TMP_GCLIENT_FILE=.tmp.gclient
    echo solutions=[{"name":".","url":None,"deps_file":".DEPS.git"}] > %TMP_GCLIENT_FILE%
    FOR /F "delims=" %%a in ('call gclient hookinfo --gclientfile=%TMP_GCLIENT_FILE%') do set HOOKINFO=%%a
    set HOOKINFO="call %HOOKINFO:;= & call%"
    cd ..
    cmd /c %HOOKINFO%
    del /F src\%TMP_GCLIENT_FILE%
     
    ... to this:
    
    @echo off
    setlocal
    call gclient runhooks --spec="solutions=[{'name':'src','url':None,'deps_file':'.DEPS.git'}]"
     
    
    Review URL: https://chromiumcodereview.appspot.com/10835045
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@149223 0039d316-1c4b-4281-b951-d872f2087c98
    e2e03201
gclient.py 61.8 KB