Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I compare a commit range in bitbucket like I could in crucible?

simon democko February 28, 2020

In Crucible you could drag a range between two commits in a code review. This was very useful, if you returned to the review after a while and was interested only in a set of commit changes. Particularly useful if a bunch of commits actually did some back and forth changes and you are not interested in the mid-steps only in the end result.

On bitbucket I can check changes of the whole PR, or individual commit changes. Is there a way to see changes for a range of commits, or I'm unlucky? Is this planned? Or is it for some reason difficult, unfeasible for Atlassian to do?

 

image.png

2 answers

2 accepted

1 vote
Answer accepted
Maciej Adamczak
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 17, 2020
simon democko March 18, 2020

Hi! I meant within the pull request itself, this requires to go and copy the commit numbers from the PR into this interface, which is cumbersome. But definitely an improvement.

Maciej Adamczak
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 18, 2020

Thanks for the answer. We don't have any UI for doing that but you could try using the small hidden feature of Pull Request.

If you know the commit hashes you could prepare the custom URL for the pull request:

https://your-stash-instsance.com/projects/PROJECT-NAME/repos/repo-name/pull-requests/123456/commits/<<git-commit-id-A>>?since=<<git-commit-id-B->>

Example:

https://your-stash-instsance.com/projects/PROJECT-NAME/repos/repo-name/pull-requests/123456/commits/4455a8804c1927e604b0038ed7bc72a0cc7101ef?since=01843fca50be506f4da77b59d52304c6174d667e

This will show you the custom diff. As you said that's a cumbersome solution. If you feel like we should add the feature into Bitbucket please raise a feature request ticket on https://jira.atlassian.com/browse/BSERV

Thanks,
Maciej

Like # people like this
simon democko March 25, 2020

For anyone interested, you can vote on this feature suggestion here: https://jira.atlassian.com/browse/BSERV-12260

Like # people like this
0 votes
Answer accepted
simon democko March 25, 2020

For anyone interested, you can vote on this feature suggestion here: https://jira.atlassian.com/browse/BSERV-12260

_______________

Mad's good workaround answer for better visibility: 

We don't have any UI for doing that but you could try using the small hidden feature of Pull Request.

If you know the commit hashes you could prepare the custom URL for the pull request:

https://your-stash-instsance.com/projects/PROJECT-NAME/repos/repo-name/pull-requests/123456/commits/<<git-commit-id-A>>?since=<<git-commit-id-B->>

Example:

https://your-stash-instsance.com/projects/PROJECT-NAME/repos/repo-name/pull-requests/123456/commits/4455a8804c1927e604b0038ed7bc72a0cc7101ef?since=01843fca50be506f4da77b59d52304c6174d667e

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events