patch¶
rbt patch will download the latest diff from the review request
matching review-request-id
and apply it to the local working directory. The
--diff-revision
option may be used to specify a specific revision
of the diff to use.
Usage:
$ rbt patch [options] <review-request-id>
Default Options¶
A number of options to rbt patch can be set by default
in .reviewboardrc
. These can go either in the repository’s
or the user’s .reviewboardrc
.
The options include:
DEBUG
(-d
)REVIEWBOARD_URL
(--server
)USERNAME
(--username
)PASSWORD
(--password
)REPOSITORY_TYPE
(--repository-type
)
Options¶
-
-d
,
–debug
¶
Display debug output.
The default can be set in
DEBUG
in.reviewboardrc
.
-
–diff-revision
¶
Revision id of diff to be used as patch.
-
–px
¶
Numerical pX argument for patch.
-
-c
,
–commit
¶
Commit using information fetched from the review request (Git only).
-
–server
¶
Specify a different Review Board server to use.
The default can be set in
REVIEWBOARD_URL
in.reviewboardrc
.
-
–username
¶
Username to be supplied to the Review Board server.
The default can be set in
USERNAME
in.reviewboardrc
.
-
–password
¶
Password to be supplied to the Review Board server.
The default can be set in
PASSWORD
in.reviewboardrc
.
-
–repository-type
¶
Specifies the type of repository in the current directory. In most cases this should be detected automatically, but some directory structures containing multiple repositories require this option to select the proper type. The rbt list-repo-types command can be used to list the supported values.
The default can be set in
REPOSITORY_TYPE
in.reviewboardrc
.
-
–print
¶
Prints the patch to standard output instead of applying it to the tree.