Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-12511

Commit graph shows incorrect parent for a branch

    XMLWordPrintable

Details

    Description

      Issue Summary

      Commit graph in Bitbucket can show differently than source tree when common ancestor of a branch has same timestamp as a child commit in a branch.

      Steps to Reproduce

      1. Create a repository
      2. Create a couple of commits lets says M1, M2 on master branch
      3. Checkout a branch lets say branch1 from master branch
      4. Create commits B1, B2, B3 on branch1
      5. Checkout master branch and create commit M3.
      6. Rebase master branch onto commit B1.
      7. Merge branch1 -> master
      8. Push both master and branch1 to remote repository.
      9. Go to commits page and view graph.

      Expected Results

      B1 should be shown below B2 as it's parent.

      Actual Results

      B1 is shown above B2 and there is no line connecting the two.

      This bug can also be reproduced using repo.zip. Push that repository to Bitbucket and notice the commit graph. Open the same repository in source tree and observe the difference.

      Bitbucket

      Source tree

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgoyal2@atlassian.com Manish
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Backbone Issue Sync