Forums

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

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

Philip Constantinou
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 5, 2020

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
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 7, 2020

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
AUG Leaders

Atlassian Community Events