fetch

This command allows you to fetch a patch. The fetched patch is referenced as refs/patches/id/revision.

pt fetch <id>[/<revision>] <args>

arguments

ArgumentUsageDescription
<id>/<revision>1234/10A patch specification. Id must be an integer. For Gerrit servers, this is the review/change number. For Gitblit servers, this is the ticket number. If revision is ommitted, the most recent revision as determined by the patch index is retrieved. If the patch index is stale, it will be refreshed from the patch server.
-u, --username-u jamesSpecify the account username for the patch server
-p, --password-p paswordSpecify the account password for the patch server
--debug<flag>Enables verbose debug logging and stacktraces
-q, --quiet<flag>Disables all console output except for stacktraces
--nocolor<flag>Disables ANSI escape sequences

shortcuts

If you are currently reviewing a revision of the desired patch, you may use relative shortcuts to switch between revisions.

pt fetch /-- (fetch previous revision)
pt fetch /-5 (fetch 5th revision before the active revision)

examples

 pt fetch 9379
 pt fetch 9379/10