def __init__(self, *args, **kwargs): # Override some default values ctx = Ctx() ctx.symbol_commit_message = ("artificial changeset to create " "%(symbol_type)s '%(symbol_name)s'") ctx.post_commit_message = ( "artificial changeset: compensate for changes in %(revnum)s " "(on non-trunk default branch in CVS)") DVCSRunOptions.__init__(self, *args, **kwargs)
def __init__(self, *args, **kwargs): # Override some default values ctx = Ctx() ctx.symbol_commit_message = ( "artificial changeset to create " "%(symbol_type)s '%(symbol_name)s'") ctx.post_commit_message = ( "artificial changeset: compensate for changes in %(revnum)s " "(on non-trunk default branch in CVS)") DVCSRunOptions.__init__(self, *args, **kwargs)
def _get_extraction_options_group(self): group = DVCSRunOptions._get_extraction_options_group(self) self._add_use_cvs_option(group) self._add_use_rcs_option(group) self.parser.set_default('use_external_blob_generator', False) group.add_option( IncompatibleOption( '--use-external-blob-generator', action='store_true', help=( 'Use an external Python program to extract file revision ' 'contents (much faster than --use-rcs or --use-cvs but ' 'leaves keywords unexpanded and requires a separate, ' 'seekable blob file to write to in parallel to the main ' 'cvs2git script.'), man_help= ('Use an external Python program to extract the file revision ' 'contents from the RCS files and output them to the blobfile. ' 'This option is much faster than \\fB--use-rcs\\fR or ' '\\fB--use-cvs\\fR but leaves keywords unexpanded and requires ' 'a separate, seekable blob file to write to in parallel to the ' 'main cvs2git script.'), )) return group
def _get_extraction_options_group(self): group = DVCSRunOptions._get_extraction_options_group(self) self._add_use_cvs_option(group) self._add_use_rcs_option(group) self.parser.set_default('use_external_blob_generator', False) group.add_option(IncompatibleOption( '--use-external-blob-generator', action='store_true', help=( 'Use an external Python program to extract file revision ' 'contents (much faster than --use-rcs or --use-cvs but ' 'leaves keywords unexpanded and requires a separate, ' 'seekable blob file to write to in parallel to the main ' 'cvs2git script.' ), man_help=( 'Use an external Python program to extract the file revision ' 'contents from the RCS files and output them to the blobfile. ' 'This option is much faster than \\fB--use-rcs\\fR or ' '\\fB--use-cvs\\fR but leaves keywords unexpanded and requires ' 'a separate, seekable blob file to write to in parallel to the ' 'main cvs2git script.' ), )) return group
def _get_output_options_group(self): group = DVCSRunOptions._get_output_options_group(self) # XXX what if the hg repo already exists? die, clobber, or append? # (currently we die at the start of OutputPass) group.add_option(IncompatibleOption( '--hgrepos', type='string', action='store', help='create Mercurial repository in PATH', man_help=( 'Convert to a Mercurial repository in \\fIpath\\fR. This creates ' 'a new Mercurial repository at \\fIpath\\fR. \\fIpath\\fR must ' 'not already exist.' ), metavar='PATH', )) # XXX --dry-run? return group
def _get_output_options_group(self): group = DVCSRunOptions._get_output_options_group(self) # XXX what if the hg repo already exists? die, clobber, or append? # (currently we die at the start of OutputPass) group.add_option( IncompatibleOption( '--hgrepos', type='string', action='store', help='create Mercurial repository in PATH', man_help= ('Convert to a Mercurial repository in \\fIpath\\fR. This creates ' 'a new Mercurial repository at \\fIpath\\fR. \\fIpath\\fR must ' 'not already exist.'), metavar='PATH', )) # XXX --dry-run? return group
def _get_output_options_group(self): group = DVCSRunOptions._get_output_options_group(self) group.add_option( IncompatibleOption( '--blobfile', type='string', action='store', help='path to which the "blob" data should be written', man_help= ('Write the "blob" data (containing revision contents) to ' '\\fIpath\\fR. If not set, the blob data is written to the ' 'same destination as the dumpfile output.'), metavar='PATH', )) group.add_option( IncompatibleOption( '--dumpfile', type='string', action='store', help='path to which the revision data should be written', man_help= ('Write the revision data (branches and commits) to \\fIpath\\fR. ' 'If not set, output goes to stdout.'), metavar='PATH', )) group.add_option( ContextOption( '--dry-run', action='store_true', help=( 'do not create any output; just print what would happen.'), man_help=( 'Do not create any output; just print what would happen.'), )) return group
def _get_output_options_group(self): group = DVCSRunOptions._get_output_options_group(self) group.add_option(IncompatibleOption( '--dumpfile', type='string', action='store', help='path to which the data should be written', man_help=( 'Write the blobs and revision data to \\fIpath\\fR.' ), metavar='PATH', )) group.add_option(ContextOption( '--dry-run', action='store_true', help=( 'do not create any output; just print what would happen.' ), man_help=( 'Do not create any output; just print what would happen.' ), )) return group
def _get_output_options_group(self): group = DVCSRunOptions._get_output_options_group(self) group.add_option( IncompatibleOption( '--dumpfile', type='string', action='store', help='path to which the data should be written', man_help=( 'Write the blobs and revision data to \\fIpath\\fR.'), metavar='PATH', )) group.add_option( ContextOption( '--dry-run', action='store_true', help=( 'do not create any output; just print what would happen.'), man_help=( 'Do not create any output; just print what would happen.'), )) return group
def _get_output_options_group(self): group = DVCSRunOptions._get_output_options_group(self) group.add_option(IncompatibleOption( '--blobfile', type='string', action='store', help='path to which the "blob" data should be written', man_help=( 'Write the "blob" data (containing revision contents) to ' '\\fIpath\\fR. If not set, the blob data is written to the ' 'same destination as the dumpfile output.' ), metavar='PATH', )) group.add_option(IncompatibleOption( '--dumpfile', type='string', action='store', help='path to which the revision data should be written', man_help=( 'Write the revision data (branches and commits) to \\fIpath\\fR. ' 'If not set, output goes to stdout.' ), metavar='PATH', )) group.add_option(ContextOption( '--dry-run', action='store_true', help=( 'do not create any output; just print what would happen.' ), man_help=( 'Do not create any output; just print what would happen.' ), )) return group
def _get_extraction_options_group(self): group = DVCSRunOptions._get_extraction_options_group(self) self._add_use_cvs_option(group) self._add_use_rcs_option(group) return group
def _get_extraction_options_group(self): group = DVCSRunOptions._get_extraction_options_group(self) self._add_use_internal_co_option(group) self._add_use_cvs_option(group) self._add_use_rcs_option(group) return group