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

make cvs tag -F optional

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.2
    • Component/s: maven-scm-provider-cvs
    • Labels:
      None
    • Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: