5.7.139. Bugzilla::Extension::VCS::hook

5.7.139.1. NAME

hook.pl - A helper for implementing version-control hooks to update Bugzilla when a checkin is done.

5.7.139.2. SYNOPSIS

hook.pl --bug=<id> --revision=<id> --project=<path> --config=<file>

5.7.139.3. OPTIONS

--config=file

The path to a file that contains a configuration for this script. The contents of the file would look something like:

repo: http://svn.mozilla.org/
login: user@example.com
pass: mypass
bugzilla: https://bugzilla.mozilla.org/

Each line replaces the value of a switch to this script.

--bug=id

The id of the bug you're associating this commit to.

--revision=id

The "revision id" of the commit that you're associating with a bug. In some VCSes, this is different from the "revision number".

--project=path

The path to the "project" in the VCS that's being updated, relative to the root of the repository. Usually this is just a path to the branch being updated.

--repo=url

The "repository" that's being updated. The root of your VCS.

--login=user

The Bugzilla user that will be used to update the bug.

--pass=password

The password for the Bugzilla user.

--bugzilla=url

The URL to your Bugzilla installation, ending with a slash.

--help

Display this help.

This documentation undoubtedly has bugs; if you find some, please file them here.