Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-6925

CLI should have a better error message for svn diff with property changes and use the option "--patch-compatible" if SVN 1.8.x is detected

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Due to this bug https://jira.atlassian.com/browse/CRUC-6114 , CLI tool in Crucible "crucible.py" will have the following error when uploading SVN diff with property changes:

      $ python crucible.py 
      Crucible server: http://localhost:8060
      Crucible username: admin
      Detected Crucible repository subversion. Use --repository or --noanchor options to override
      Please specify a project to create the review in or an existing review id to add to [CR]: CR-1
      Server Error: com.cenqua.crucible.revision.diff.patchDiff.PatchException: Unrecognised diff format. Expected diff hunk descriptor but found: 
      

      It should provide a clear message that the "svn diff" has a property changes and it couldn't be added to the Crucible review. We will need to run the command "svn diff" and remove the property changes before uploading the patch file to Crucible Review manually.

      The CLI tool "crucible.py" should also detect what is the SVN version installed in the machine. If it is SVN 1.8.x, "crucible.py" should use the option "--patch-compatible" for "svn diff" when generating the patch to be uploaded.

              Unassigned Unassigned
              klfoong Foong (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: