Пример #1
0
  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
Пример #2
0
    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
Пример #3
0
    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
Пример #4
0
  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
Пример #5
0
    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
Пример #6
0
  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