Debian Codegraph @

README

raw
1 PyBugz - Python Bugzilla Interface
2 ----------------------------------
3
4 Bugzilla has a very inefficient user interface, so I've written a
5 command line utility to interact with it. This is mainly done to help
6 me with closing bugs on Gentoo Bugzilla by grabbing patches, ebuilds
7 and so on.
8
9 Author
10 ------
11 Alastair Tse <[email protected]>. Copyright (c) 2006 under GPL-2.
12
13 Requirements
14 ------------
15
16 * Python 3.3 or later
17
18 Features
19 --------
20
21 * Searching bugzilla
22 * Listing details of a bug including comments and attachments
23 * Downloading/viewing attachments from bugzilla
24 * Posting bugs, comments, and making changes to an existing bug.
25 * Adding attachments to a bug.
26
27 Usage/Workflow
28 --------------
29
30 PyBugz comes with a command line interface called "bugz". It's
31 operation is similar in style to cvs/svn where a subcommand is
32 required for operation.
33
34 To explain how it works, I will use a typical workflow for Gentoo
35 development.
36
37 1) Searching bugzilla for bugs I can fix, I'll run the command:
38 ---------------------------------------------------------------
39
40 $ bugz search "version bump" --assigned-to [email protected]
41
42 * Using https://bugs.gentoo.org/xmlrpc.cgi
43 * Searching for "version bump"
44 101968 liquidx net-im/msnlib version bump
45 125468 liquidx version bump for dev-libs/g-wrap-1.9.6
46 130608 liquidx app-dicts/stardict version bump: 2.4.7
47
48 2) Narrow down on bug #101968, I can execute:
49 ---------------------------------------------
50
51 $ bugz get 101968
52
53 * Using https://bugs.gentoo.org/xmlrpc.cgi
54 * Getting bug 130608 ..
55 Title : app-dicts/stardict version bump: 2.4.7
56 Assignee : [email protected]
57 Reported : 2006-04-20 07:36 PST
58 Updated : 2006-05-29 23:18:12 PST
59 Status : NEW
60 URL : http://stardict.sf.net
61 Severity : enhancement
62 Reporter : [email protected]
63 Priority : P2
64 Comments : 3
65 Attachments : 1
66
67 [ATTACH] [87844] [stardict 2.4.7 ebuild]
68
69 [Comment #1] [email protected] : 2006-04-20 07:36 PST
70 ...
71
72 3) Now this bug has an attachment submitted by the user, so I can
73 easily pull that attachment in:
74 -----------------------------------------------------------------
75
76 $ bugz attachment 87844
77
78 * Using https://bugs.gentoo.org/xmlrpc.cgi
79 * Getting attachment 87844
80 * Saving attachment: "stardict-2.4.7.ebuild"
81
82 4) If the ebuild is suitable, we can commit it using our normal
83 repoman tools, and close the bug.
84 ---------------------------------------------------------------
85
86 $ bugz modify 130608 --fixed -c "Thanks for the ebuild. Committed to
87 portage"
88
89 or if we find that the bug is invalid, we can close it by using:
90
91 $ bugz modify 130608 --invalid -c "Not reproducable"
92
93 Other options
94 -------------
95
96 bugz has an extensive help system for commands and options.
97
98 bugz --help gives help for the global options and subcommands, and
99 bugz <subcommand> --help gives help for that specific subcommand.
100
101 PyBugz Configuration
102 --------------------
103
104 PyBugz supports a configuration system which defines defaults for
105 multiple Bugzilla installations and allows the system administrator and
106 individual users to override or add to these settings.
107
108 The supplied defaults are stored in /usr/share/pybugz.d/*.conf. The
109 system administrator can override or add to these defaults on a site-wide
110 basis by creating a directory /etc/pybugz.d and adding files with a
111 .conf extension to this directory. Individual users can override or add
112 to all of these settings by placing a file named .bugzrc in their home
113 directory.
114
115 For more information about this configuration system, see the
116 pybugz.d (5) man page.