hgext/bugzilla.py
changeset 13896 3b4025dcb223
parent 13884 773a833ddbc6
child 14234 600e64004eb5
equal deleted inserted replaced
13893:1aea86673dee 13896:3b4025dcb223
    19 1. Access via the Bugzilla XMLRPC interface. Requires Bugzilla 3.4 or later.
    19 1. Access via the Bugzilla XMLRPC interface. Requires Bugzilla 3.4 or later.
    20 
    20 
    21 2. Check data via the Bugzilla XMLRPC interface and submit bug change
    21 2. Check data via the Bugzilla XMLRPC interface and submit bug change
    22    via email to Bugzilla email interface. Requires Bugzilla 3.4 or later.
    22    via email to Bugzilla email interface. Requires Bugzilla 3.4 or later.
    23 
    23 
    24 2. Writing directly to the Bugzilla database. Only Bugzilla installations
    24 3. Writing directly to the Bugzilla database. Only Bugzilla installations
    25    using MySQL are supported. Requires Python MySQLdb.
    25    using MySQL are supported. Requires Python MySQLdb.
    26 
    26 
    27 Writing directly to the database is susceptible to schema changes, and
    27 Writing directly to the database is susceptible to schema changes, and
    28 relies on a Bugzilla contrib script to send out bug change
    28 relies on a Bugzilla contrib script to send out bug change
    29 notification emails. This script runs as the user running Mercurial,
    29 notification emails. This script runs as the user running Mercurial,
    91   ``/var/local/my-project`` with a strip of 2 gives a value for
    91   ``/var/local/my-project`` with a strip of 2 gives a value for
    92   ``{webroot}`` of ``my-project``. Default 0.
    92   ``{webroot}`` of ``my-project``. Default 0.
    93 
    93 
    94 web.baseurl
    94 web.baseurl
    95   Base URL for browsing Mercurial repositories. Referenced from
    95   Base URL for browsing Mercurial repositories. Referenced from
    96   templates as {hgweb}.
    96   templates as ``{hgweb}``.
    97 
    97 
    98 Configuration items common to XMLRPC+email and MySQL access modes:
    98 Configuration items common to XMLRPC+email and MySQL access modes:
    99 
    99 
   100 bugzilla.usermap
   100 bugzilla.usermap
   101   Path of file containing Mercurial committer email to Bugzilla user email
   101   Path of file containing Mercurial committer email to Bugzilla user email
   102   mappings. If specified, the file should contain one mapping per
   102   mappings. If specified, the file should contain one mapping per
   103   line::
   103   line::
   104 
   104 
   105     committer = Bugzilla user
   105     committer = Bugzilla user
   106 
   106 
   107   See also the [usermap] section.
   107   See also the ``[usermap]`` section.
   108 
   108 
   109 The ``[usermap]`` section is used to specify mappings of Mercurial
   109 The ``[usermap]`` section is used to specify mappings of Mercurial
   110 committer email to Bugzilla user email. See also ``bugzilla.usermap``.
   110 committer email to Bugzilla user email. See also ``bugzilla.usermap``.
   111 Contains entries of the form ``committer = Bugzilla user``.
   111 Contains entries of the form ``committer = Bugzilla user``.
   112 
   112