Linux command
rbt 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Post a new review request
rbt post
Post a review request
rbt post [revision]
Update an existing review request
rbt post -u
Update a specific review request
rbt post -r [review_request_id]
Apply a patch
rbt patch [review_request_id]
Show the status
rbt status
Land a reviewed change
rbt land [review_request_id]
说明
rbt is the command-line client for Review Board, a web-based code review tool. It automates creating, updating, and managing code review requests from the terminal, integrating with version control systems like Git, Mercurial, SVN, Perforce, and CVS. The most common workflow involves rbt post to upload changes for review, then rbt land to merge approved changes. The tool automatically generates diffs and detects repository configuration, minimizing manual steps. Configuration is typically stored in a .reviewboardrc file in the repository root, containing the server URL and repository settings. This allows team members to share consistent configuration.
参数
- post
- Create or update a review request with local changes
- patch
- Apply the diff from a review request to the local tree
- land
- Land a reviewed change (commit, push, and close review)
- status
- Show pending review requests and their status
- diff
- Print the diff that would be uploaded for review
- close
- Close a review request (submitted or discarded)
- setup-repo
- Configure the repository for RBTools
- --server _URL_
- Specify the Review Board server URL
- -r, --review-request-id _ID_
- Specify the review request ID to update
- -u, --update
- Update the most recent matching review request
- --publish
- Publish the review request immediately
- -d, --debug
- Enable debug output
- -h, --help
- Display help information
FAQ
What is the rbt command used for?
rbt is the command-line client for Review Board, a web-based code review tool. It automates creating, updating, and managing code review requests from the terminal, integrating with version control systems like Git, Mercurial, SVN, Perforce, and CVS. The most common workflow involves rbt post to upload changes for review, then rbt land to merge approved changes. The tool automatically generates diffs and detects repository configuration, minimizing manual steps. Configuration is typically stored in a .reviewboardrc file in the repository root, containing the server URL and repository settings. This allows team members to share consistent configuration.
How do I run a basic rbt example?
Run `rbt post` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does post do in rbt?
Create or update a review request with local changes