Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why I can not compare and merge changes from parent to fork repo?

Hasmukh Mistry September 15, 2024

<screenshot_removed_for_privacy>

I have forked the repo. Now When I try to compare and merge changes from parent it ends up with an error. Please check network response below too.

{ 
"type": "error",
"error": {
"message": "Something went wrong",
"id": "de6ea9ded3ab4b77bab934d11337fb18"
}
}

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 17, 2024

Hi @Hasmukh Mistry

Thank you for reaching out to the community.

Would it be possible for you to confirm how are you currently merging from the forked repo to the parent repo at the moment?

Regards,
Mark C

Hasmukh Mistry September 17, 2024

Hello @Mark C 

Thanks for responding.

I usually navigate to Branches >> From Right Side '...' >> Compare Commits, Branches or Tags.

Which forms the url like : https://bitbucket.org/workspace/repo/branches/compare

Then I compare the Source AND Destination. I generally prefer Fast Forward Merge when i sync parent to my fork repo. And this is the only place I found this option.

Let me know if you need any further information

Thanks,
Hasmukh

Hasmukh Mistry September 17, 2024

Hello @Mark C 

Also , I am merging changes from Parent to Fork. Not to the Parent

Thanks.
Hasmukh

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 18, 2024

Hi @Hasmukh Mistry


May I know if you've tried using the "Sync" button located from the repository Overview page?

Regards,
Mark C

Hasmukh Mistry September 18, 2024

Hi @Mark C 

Yes I tried, But that creates merge commit on my fork repo. And I would like to avoid that.

Thanks

 

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 23, 2024

Hi Hasmukh,

Please allow me to step in as Mark is out of office at the moment.

I checked the error code you provided in your post, and our system shows a Request Timeout Error for this code. We have the following limits for diffs in Bitbucket Cloud:

Does the diff between these two branches exceed any of these limits?

 

You can sync the two repos locally if this is not possible from the UI:

1. Clone the fork

2. Navigate to the clone directory of the fork and add another remote to the clone that points to the parent

git remote add parent https_or_ssh_url_of_parent_repo

3. Fetch the branches from the parent with

git fetch parent

4. If master is not the currently checked out branch in the clone, check out master branch

git checkout master

5. Then, merge the parent's master into your local master

git merge parent/master

If the fork's master doesn't have any additional commits that don't exist on the parent, and if you haven't set up Git on your computer to always merge with a merge commit, Git will merge with fast-forward. You can then push this to the fork.

Just a heads up, I removed the screenshots from your post for privacy reasons, as they were showing workspace IDs and repo names.

Kind regards,
Theodora

Hasmukh Mistry September 23, 2024

Hi Theodora

Thanks. Yes these steps work too. And you are right about exceeding limits. I guess I have to update my fork locally and push to bitbucket. 

Thank you 

Like Theodora Boudale likes this
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 23, 2024

You are welcome, Hasmukh. Please feel free to reach out if you ever need anything else!

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events