#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# super ( ImportCommand , self ) . __init__ ( * args , ** kwargs ) #NEWLINE# self . parser . add_argument ( '-i' , '--interactive' , action = 'store_true' , default = False , help = 'Let the user edit the list of commits before applying.' ) #NEWLINE# self . parser . add_argument ( '-d' , '--dry-run' , dest = 'dry_run' , action = 'store_true' , default = False , help = 'Only print out the list of commits that would be applied.' ) #NEWLINE# self . parser . add_argument ( '-f' , '--force' , dest = 'force' , required = False , action = 'store_true' , default = False , help = 'Force overwrite of existing import branch if it exists.' ) #NEWLINE# self . parser . add_argument ( '--finish' , dest = 'finish' , required = False , action = 'store_true' , default = False , help = 'Merge the specified import branch into the target' ) #NEWLINE# self . parser . add_argument ( '--merge' , dest = 'merge' , required = False , action = 'store_true' , default = True , help = 'Merge the resulting import branch into the target branch once complete' ) #NEWLINE# self . parser . add_argument ( '--no-merge' , dest = 'merge' , required = False , action = 'store_false' , help = 'Disable merge of the resulting import branch' ) #NEWLINE# self . parser . add_argument ( '--search-refs' , action = 'append_replace' , metavar = '<pattern>' , default = [ 'upstream/*' ] , dest = 'search_refs' , help = 'Refs to search for previous import commit. May be specified multiple times.' ) #NEWLINE# self . parser . add_argument ( '-s' , '--strategy' , metavar = '<strategy>' , choices = ImportStrategiesFactory . list_strategies ( ) , default = LocateChangesWalk . get_strategy_name ( ) , help = 'Use the given strategy to re-apply locally carried changes to the import branch. (default: %(default)s)' ) #NEWLINE# self . parser . add_argument ( '--into' , dest = 'branch' , metavar = '<branch>' , default = 'HEAD' , help = 'Branch to take changes from, and replace with imported branch.' ) #NEWLINE# self . parser . add_argument ( '--import-branch' , metavar = '<import-branch>' , default = 'import/{describe}' , help = 'Name of import branch to use' ) #NEWLINE# self . parser . add_argument ( 'upstream_branch' , metavar = '<upstream-branch>' , nargs = '?' , default = 'upstream/master' , help = 'Upstream branch to import. Must be specified if you wish to provide additional branches.' ) #NEWLINE# self . parser . add_argument ( 'branches' , metavar = '<branches>' , nargs = '*' , help = 'Branches to additionally merge into the import branch using default git merging behaviour' )