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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I comment on a diff that's larger than 2000 lines?

I'm using BitBucket Cloud and I have a pull request that contains a new file that is 2700 lines.

I want to comment on the diff but the commenting features appear to be disabled even in single file view. The content is not visible in the integrated view.

1 answer

0 votes

Hi Philip,

We have limits for viewing content and diffs in Bitbucket Cloud as large resources require excessive processing.

These limits can be found here:

The relevant one in your case is the file's diff, which cannot exceed 2000 changed lines or 102,400 bytes (100 KB) of raw diff data. I believe that the reason for the issues you mentioned is that this specific file exceeds this limit.

The workaround that I could suggest here, if you need to use comments and view the diff on the website, would be to rewrite history and introduce this file with part of its content, less than the limit, then create a PR for that. Then add the rest of the content at a later commit (after the previous PR is merged) and create another PR. I realize that this may be less than ideal, but I'm afraid that it would be the only way to work around this issue with the limits we have in place at the moment.

Please feel free to let me know if you have any questions.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,741 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you