Hi,

Most likely, it’s trying to build a diff with too many commits.

RBTools tries to guess which “tracking branch” (such as origin/master)
commits should be based off of, and will generate a diff between that and
HEAD.

If it guesses wrong, your diff might be too large.

You’ll want to do the following:

1. Find out what the nearest tracking branch should be for what you want to
post.

2. Make sure your branch is up-to-date with the tracking branch (rebased
onto it or the tracking branch is merged in).

3. Pass the tracking branch using the --tracking-branch parameter, or
(ideally) set it in .reviewboardrc as TRACKING_BRANCH.

If you run `rbt diff` instead of `rbt post`, you can see what diff it tries
to make. If you pass -d (debug), you can see what range of commits it’s
using for that diff.

Christian


On Fri, Jun 16, 2023 at 04:33 Yinglei Wu <fortheda...@gmail.com> wrote:

> Hi everyone.
> I'm using  *rbt post [git commitid] *command to create postreview, but
> got this error:
>
>
>
> *ERROR: Error validating diffThe specified diff file is too large. (HTTP
> 400, API Error 220)*
>
> It looks like my diff is too large, but it's not, it's only a couple lines
> of code.
>
> I don't know  why?  And how can I fix this?
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "Review Board Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/b9fd86c9-042b-4cfe-86da-cfe010c07098n%40googlegroups.com
> <https://groups.google.com/d/msgid/reviewboard/b9fd86c9-042b-4cfe-86da-cfe010c07098n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
-- 
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAE7VndmRX-V7cRWw-aq9AE5ea%2BdN8h3XGEy5N%2BtNo-rR%3DZ7HmA%40mail.gmail.com.

Reply via email to