<s> """<STR_LIT>""" <EOL> import copy <EOL> from qisys import ui <EOL> import qisrc . parsers <EOL> import sys <EOL> def configure_parser ( parser ) : <EOL> qisrc . parsers . worktree_parser ( parser ) <EOL> parser . add_argument ( "<STR_LIT>" ) <EOL> def do ( args ) : <EOL> git_worktree = qisrc . parsers . get_git_worktree ( args ) <EOL> group = args . group <EOL> manifest = git_worktree . manifest <EOL> if git_worktree . manifest . groups is None : <EOL> groups = list ( ) <EOL> else : <EOL> groups = copy . copy ( git_worktree . manifest . groups ) <EOL> if group in groups : <EOL> ui . error ( "<STR_LIT>" , group , "<STR_LIT>" ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> else : <EOL> groups . append ( args . group ) <EOL> git_worktree . configure_manifest ( manifest . url , groups = groups , <EOL> branch = manifest . branch ) </s>
