def CMDowners(parser, args):
    'Interactively find the owners for reviewing.'
    parser.add_option('--no-color', action='store_true', help='Use this option to disable color output')
    auth.add_auth_options(parser)
    (options, args) = parser.parse_args(args)
    auth_config = auth.extract_auth_config_from_options(options)
    author = (RunGit(['config', 'user.email']).strip() or None)
    cl = Changelist(auth_config=auth_config)
    if args:
        if (len(args) > 1):
            parser.error('Unknown args')
        base_branch = args[0]
    else:
        base_branch = cl.GetCommonAncestorWithUpstream()
    change = cl.GetChange(base_branch, None)
    return owners_finder.OwnersFinder([f.LocalPath() for f in cl.GetChange(base_branch, None).AffectedFiles()], change.RepositoryRoot(), author, fopen=file, os_path=os.path, glob=glob.glob, disable_color=options.no_color).run()
Interactively find the owners for reviewing.
def CMDowners(parser, args):
    
    parser.add_option('--no-color', action='store_true', help='Use this option to disable color output')
    auth.add_auth_options(parser)
    (options, args) = parser.parse_args(args)
    auth_config = auth.extract_auth_config_from_options(options)
    author = (RunGit(['config', 'user.email']).strip() or None)
    cl = Changelist(auth_config=auth_config)
    if args:
        if (len(args) > 1):
            parser.error('Unknown args')
        base_branch = args[0]
    else:
        base_branch = cl.GetCommonAncestorWithUpstream()
    change = cl.GetChange(base_branch, None)
    return owners_finder.OwnersFinder([f.LocalPath() for f in cl.GetChange(base_branch, None).AffectedFiles()], change.RepositoryRoot(), author, fopen=file, os_path=os.path, glob=glob.glob, disable_color=options.no_color).run()