Exemple #1
0
  def process_property_setter_options(self):
    """Process the options that set SVN properties."""

    ctx = Ctx()
    options = self.options

    for value in options.auto_props_files:
      ctx.svn_property_setters.append(
          AutoPropsPropertySetter(value, options.auto_props_ignore_case)
          )

    for value in options.mime_types_files:
      ctx.svn_property_setters.append(MimeMapper(value))

    ctx.svn_property_setters.append(CVSBinaryFileEOLStyleSetter())

    ctx.svn_property_setters.append(CVSBinaryFileDefaultMimeTypeSetter())

    if options.eol_from_mime_type:
      ctx.svn_property_setters.append(EOLStyleFromMimeTypeSetter())

    ctx.svn_property_setters.append(
        DefaultEOLStyleSetter(options.default_eol)
        )

    ctx.svn_property_setters.append(SVNBinaryFileKeywordsPropertySetter())

    if not options.keywords_off:
      ctx.svn_property_setters.append(
          KeywordsPropertySetter(config.SVN_KEYWORDS_VALUE))

    ctx.svn_property_setters.append(ExecutablePropertySetter())
Exemple #2
0
        symbol_strategy_rules.append(HeuristicPreferredParentRule())

        if auto_props_file:
            ctx.svn_property_setters.append(
                AutoPropsPropertySetter(auto_props_file,
                                        auto_props_ignore_case))

        if mime_types_file:
            ctx.svn_property_setters.append(MimeMapper(mime_types_file))

        ctx.svn_property_setters.append(CVSBinaryFileEOLStyleSetter())

        ctx.svn_property_setters.append(CVSBinaryFileDefaultMimeTypeSetter())

        if eol_from_mime_type:
            ctx.svn_property_setters.append(EOLStyleFromMimeTypeSetter())

        ctx.svn_property_setters.append(DefaultEOLStyleSetter(default_eol))

        ctx.svn_property_setters.append(SVNBinaryFileKeywordsPropertySetter())

        if not keywords_off:
            ctx.svn_property_setters.append(
                KeywordsPropertySetter(config.SVN_KEYWORDS_VALUE))

        ctx.svn_property_setters.append(ExecutablePropertySetter())

        # Create the default project (using ctx.trunk, ctx.branches, and
        # ctx.tags):
        self.add_project(
            cvsroot,