Adding a new commit to a review duplicates an existing file if the original commit of the file has been removed

XMLWordPrintable

    • Type: Bug
    • Resolution: Answered
    • Priority: Low
    • N/A
    • Affects Version/s: None
    • Component/s: None
    • None
    • Severity 3 - Minor

      Summary

      When adding a new commit to an existing review, if the commit contains a file, for which a previous commit, also added to this review, have been removed, the file gets duplicated in the review.

      Environment

      • Observed for Git repositories.

      Steps to Reproduce

      1. Create a commit, adding a file to it (e.g. TestFile.java).
      2. Create a new review, adding the commit previously created to the review.
      3. Remove the commit previously created from your Git repository, then let Crucible index the change. This commit can be removed by a rebase/force push.
      4. Create a new commit that also contains the file TestFile.java.
      5. Add this new commit to the review.

      Expected Results

      • Crucible identifies there has been a change to TestFile.java and adds a new iteration for this file to the review.

      Actual Results

      • Crucible adds TestFile.java as a new file, and the file appears duplicated in the review.

            Assignee:
            Unassigned
            Reporter:
            Gustavo Refosco (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: