def CMDtree(parser, args):
    'Shows the status of the tree.'
    (_, args) = parser.parse_args(args)
    status = GetTreeStatus()
    if ('unset' == status):
        print('You must configure your tree status URL by running "git cl config".')
        return 2
    print(('The tree is %s' % status))
    print()
    print(GetTreeStatusReason())
    if (status != 'open'):
        return 1
    return 0
Shows the status of the tree.
def CMDtree(parser, args):
    
    (_, args) = parser.parse_args(args)
    status = GetTreeStatus()
    if ('unset' == status):
        print('You must configure your tree status URL by running "git cl config".')
        return 2
    print(('The tree is %s' % status))
    print()
    print(GetTreeStatusReason())
    if (status != 'open'):
        return 1
    return 0