Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-361

make cvs tag -F optional

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.2
    • maven-scm-provider-cvs
    • None
    • Patch

    Description

      In our cvs server a tag cannot be moved. This is useful to ensure that there is only one version of a component with a same tag. Now, i wan't to integrate all our components to continuum and use it to create releases. The problem is that the scm try to tag the release using "cvs tag -F" and this fails.
      I check the code and see that it is hardcoded (in maven-scm-provider-cvs-commons/src/main/java/org/apache/maven/scm/provider/cvslib/command/tag/AbstractCvsTagCommand.java). Is it possible to make it optional ? Or what is the reason to enforce it ?

      I make a patch to add the option useForceTag. This works, but in case of a conflict with an existing flag, the cvs tag won't failed. (the tag is not set). Is this acceptable ?
      Or maybe I should check for Warning messages in the output and the command should fail if there are any warnings ?

      Attachments

        1. patch_useForceTag
          2 kB
          Benoit Decherf

        Activity

          People

            siveton Siveton Vincent
            decherfb Benoit Decherf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: