@subcommand.usage('[repo root containing codereview.settings]')
def CMDconfig(parser, args):
    'Edits configuration for this tree.'
    print('WARNING: git cl config works for Rietveld only.\nFor Gerrit, see http://crbug.com/603116.')
    parser.add_option('--activate-update', action='store_true', help='activate auto-updating [rietveld] section in .git/config')
    parser.add_option('--deactivate-update', action='store_true', help='deactivate auto-updating [rietveld] section in .git/config')
    (options, args) = parser.parse_args(args)
    if options.deactivate_update:
        RunGit(['config', 'rietveld.autoupdate', 'false'])
        return
    if options.activate_update:
        RunGit(['config', '--unset', 'rietveld.autoupdate'])
        return
    if (len(args) == 0):
        GetRietveldCodereviewSettingsInteractively()
        return 0
    url = args[0]
    if (not url.endswith('codereview.settings')):
        url = os.path.join(url, 'codereview.settings')
    LoadCodereviewSettingsFromFile(urllib2.urlopen(url))
    return 0
Edits configuration for this tree.
@subcommand.usage('[repo root containing codereview.settings]')
def CMDconfig(parser, args):
    
    print('WARNING: git cl config works for Rietveld only.\nFor Gerrit, see http://crbug.com/603116.')
    parser.add_option('--activate-update', action='store_true', help='activate auto-updating [rietveld] section in .git/config')
    parser.add_option('--deactivate-update', action='store_true', help='deactivate auto-updating [rietveld] section in .git/config')
    (options, args) = parser.parse_args(args)
    if options.deactivate_update:
        RunGit(['config', 'rietveld.autoupdate', 'false'])
        return
    if options.activate_update:
        RunGit(['config', '--unset', 'rietveld.autoupdate'])
        return
    if (len(args) == 0):
        GetRietveldCodereviewSettingsInteractively()
        return 0
    url = args[0]
    if (not url.endswith('codereview.settings')):
        url = os.path.join(url, 'codereview.settings')
    LoadCodereviewSettingsFromFile(urllib2.urlopen(url))
    return 0