Configuration

pwclient reads configuration from the .pwclientrc file, located in your home directory ($HOME or ~). Patchwork itself provides sample .pwclientrc files for projects at:

/project/{projectName}/pwclientrc/

For example, here is the .pwclientrc file for Patchwork itself.

Format

The .pwclientrc file is an INI-style config file, containing an options section along with a section for each project.

The options section provides the following configuration options:

default
The default project to use. Must be configured if not specifying a project via the command line.
signoff
Add a Signed-Off-By: line to commit messages when applying patches using the git-am command. Defaults to False.
3way
Enable three-way merge when applying patches using the git-am command. Defaults to False.

The names of the project sections must correspond to the project names in Patchwork, as reflected in the project’s URL in Patchwork. Multiple projects can be defined, but no two projects can share the same name. Project sections require the following configuration options:

url

The URL of the XMLRPC endpoint for the Patchwork instance that the project is available on. Typically $PATCHWORK_URL/xmlrpc. For example:

In addition, the following options are optional:

username
Your Patchwork username.
password
Your Patchwork password.

Note

Patchwork credentials are only needed for certain operations, such as updating the state of a patch. You will also require admin priviledges on the instance in question.

Example

[base]
default = patchwork

[patchwork]
url = http://patchwork.ozlabs.org/xmlrpc/
username = johndoe
password = password

Legacy Format

Older Patchwork instances may provide a legacy version of the .pwclientrc file that did not support multiple projects. pwclient will automatically convert this version of the file to the latest version.