Question: rbt post error.

22 views
Skip to first unread message

Yinglei Wu

unread,
Jun 16, 2023, 7:33:41 AM6/16/23
to Review Board Community
Hi everyone.
I'm using  rbt post [git commitid] command to create postreview, but got this error:

ERROR: Error validating diff

The 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?

Christian Hammond

unread,
Jun 22, 2023, 2:10:22 AM6/22/23
to revie...@googlegroups.com
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


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/b9fd86c9-042b-4cfe-86da-cfe010c07098n%40googlegroups.com.
--
--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board
Reply all
Reply to author
Forward
0 new messages