#NEWLINE# @ MigrateCommand . option ( '--rev-id' , dest = 'rev_id' , default = None , help = 'Specify a hardcoded revision id instead of generating one' ) #NEWLINE# @ MigrateCommand . option ( '--branch-label' , dest = 'branch_label' , default = None , help = 'Specify a branch label to apply to the new revision' ) #NEWLINE# @ MigrateCommand . option ( '-m' , '--message' , dest = 'message' , default = None ) #NEWLINE# @ MigrateCommand . option ( 'revisions' , nargs = '+' , help = 'one or more revisions, or "heads" for all heads' ) #NEWLINE# @ MigrateCommand . option ( '-d' , '--directory' , dest = 'directory' , default = None , help = "migration script directory (default is 'migrations')" ) #NEWLINE# def merge( directory = None , revisions = '' , message = None , branch_label = None , rev_id = None ) : #NEWLINE# #INDENT# 'Merge two revisions together.  Creates a new migration file' #NEWLINE# if ( alembic_version >= ( 0 , 7 , 0 ) ) : #NEWLINE# #INDENT# config = current_app . extensions [ 'migrate' ] . migrate . get_config ( directory ) #NEWLINE# command . merge ( config , revisions , message = message , branch_label = branch_label , rev_id = branch_label ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise RuntimeError ( 'Alembic 0.7.0 or greater is required' )