GIT/HG: predecessor detection (default diff) doesn't use ancestry of file when it should

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 2.6.0
    • Affects Version/s: 2.4-M5
    • Component/s: Indexing
    • Severity 3 - Minor

      This affects what diffRevision you get, especially during merges across branches. Also, when a fast-forward merge happens to a branch (with changes on the other branch) and there are earlier changes on the target branch in another anonymous branch, we incorrectly use the other commit as the predecessor, even though it is not in the ancestry graph - very confusing diffs appear in the ChangeSet page.

      Title was: hg - Missing merge? Commit on branch has been merged to default, but changeset diff is against last changeset committed onto default directly.

      The changeset page is showing a diff from the last change on default, but a change on a branch was merged onto default between them. So the real diff should be against a merge commit. Here's the file history and offending diff

            Assignee:
            Unassigned
            Reporter:
            Adam Ahmed (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 43m
                43m