~ubuntu-branches/debian/sid/bugzilla/sid

« back to all changes in this revision

Viewing changes to docs/html/attachments.html

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Bossek
  • Date: 2008-06-27 22:34:34 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080627223434-0ib57vstn43bb4a3
Tags: 3.0.4.1-1
* Update of French, Russian and German translations. (closes: #488251)
* Added Bulgarian and Belarusian translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
 
<HTML
3
 
><HEAD
4
 
><TITLE
5
 
>Attachments</TITLE
6
 
><META
7
 
NAME="GENERATOR"
8
 
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
9
 
REL="HOME"
10
 
TITLE="The Bugzilla Guide - 3.0.4  Release"
11
 
HREF="index.html"><LINK
12
 
REL="UP"
13
 
TITLE="Using Bugzilla"
14
 
HREF="using.html"><LINK
15
 
REL="PREVIOUS"
16
 
TITLE="Filing Bugs"
17
 
HREF="bugreports.html"><LINK
18
 
REL="NEXT"
19
 
TITLE="Hints and Tips"
20
 
HREF="hintsandtips.html"></HEAD
21
 
><BODY
22
 
CLASS="section"
23
 
BGCOLOR="#FFFFFF"
24
 
TEXT="#000000"
25
 
LINK="#0000FF"
26
 
VLINK="#840084"
27
 
ALINK="#0000FF"
28
 
><DIV
29
 
CLASS="NAVHEADER"
30
 
><TABLE
31
 
SUMMARY="Header navigation table"
32
 
WIDTH="100%"
33
 
BORDER="0"
34
 
CELLPADDING="0"
35
 
CELLSPACING="0"
36
 
><TR
37
 
><TH
38
 
COLSPAN="3"
39
 
ALIGN="center"
40
 
>The Bugzilla Guide - 3.0.4  Release</TH
41
 
></TR
42
 
><TR
43
 
><TD
44
 
WIDTH="10%"
45
 
ALIGN="left"
46
 
VALIGN="bottom"
47
 
><A
48
 
HREF="bugreports.html"
49
 
ACCESSKEY="P"
50
 
>Prev</A
51
 
></TD
52
 
><TD
53
 
WIDTH="80%"
54
 
ALIGN="center"
55
 
VALIGN="bottom"
56
 
>Chapter 5. Using Bugzilla</TD
57
 
><TD
58
 
WIDTH="10%"
59
 
ALIGN="right"
60
 
VALIGN="bottom"
61
 
><A
62
 
HREF="hintsandtips.html"
63
 
ACCESSKEY="N"
64
 
>Next</A
65
 
></TD
66
 
></TR
67
 
></TABLE
68
 
><HR
69
 
ALIGN="LEFT"
70
 
WIDTH="100%"></DIV
71
 
><DIV
72
 
CLASS="section"
73
 
><H1
74
 
CLASS="section"
75
 
><A
76
 
NAME="attachments"
77
 
>5.7. Attachments</A
78
 
></H1
79
 
><P
80
 
>&#13;      You should use attachments, rather than comments, for large chunks of ASCII
81
 
      data, such as trace, debugging output files, or log files. That way, it
82
 
      doesn't bloat the bug for everyone who wants to read it, and cause people to
83
 
      receive fat, useless mails.
84
 
    </P
85
 
><P
86
 
>You should make sure to trim screenshots. There's no need to show the
87
 
      whole screen if you are pointing out a single-pixel problem.
88
 
    </P
89
 
><P
90
 
>Bugzilla stores and uses a Content-Type for each attachment
91
 
      (e.g. text/html). To download an attachment as a different
92
 
      Content-Type (e.g. application/xhtml+xml), you can override this
93
 
      using a 'content_type' parameter on the URL, e.g.
94
 
      <TT
95
 
CLASS="filename"
96
 
>&#38;content_type=text/plain</TT
97
 
>.
98
 
    </P
99
 
><P
100
 
>&#13;      If you have a really large attachment, something that does not need to
101
 
      be recorded forever (as most attachments are), or something that is too
102
 
      big for your database, you can mark your attachment as a
103
 
      <SPAN
104
 
CLASS="QUOTE"
105
 
>"Big File"</SPAN
106
 
>, assuming the administrator of the installation
107
 
      has enabled this feature.  Big Files are stored directly on disk instead
108
 
      of in the database.  The maximum size of a <SPAN
109
 
CLASS="QUOTE"
110
 
>"Big File"</SPAN
111
 
> is
112
 
      normally larger than the maximum size of a regular attachment. Independently
113
 
      of the storage system used, an administrator can delete these attachments
114
 
      at any time. Nevertheless, if these files are stored in the database, the
115
 
      <SPAN
116
 
CLASS="QUOTE"
117
 
>"allow_attachment_deletion"</SPAN
118
 
> parameter (which is turned off
119
 
      by default) must be enabled in order to delete them.
120
 
    </P
121
 
><P
122
 
>&#13;      Also, if the administrator turned on the <SPAN
123
 
CLASS="QUOTE"
124
 
>"allow_attach_url"</SPAN
125
 
>
126
 
      parameter, you can enter the URL pointing to the attachment instead of
127
 
      uploading the attachment itself. For example, this is useful if you want to
128
 
      point to an external application, a website or a very large file. Note that
129
 
      there is no guarantee that the source file will always be available, nor
130
 
      that its content will remain unchanged.
131
 
    </P
132
 
><DIV
133
 
CLASS="section"
134
 
><H2
135
 
CLASS="section"
136
 
><A
137
 
NAME="patchviewer"
138
 
>5.7.1. Patch Viewer</A
139
 
></H2
140
 
><P
141
 
>Viewing and reviewing patches in Bugzilla is often difficult due to
142
 
      lack of context, improper format and the inherent readability issues that
143
 
      raw patches present.  Patch Viewer is an enhancement to Bugzilla designed
144
 
      to fix that by offering increased context, linking to sections, and
145
 
      integrating with Bonsai, LXR and CVS.</P
146
 
><P
147
 
>Patch viewer allows you to:</P
148
 
><P
149
 
></P
150
 
><TABLE
151
 
BORDER="0"
152
 
><TBODY
153
 
><TR
154
 
><TD
155
 
>View patches in color, with side-by-side view rather than trying
156
 
        to interpret the contents of the patch.</TD
157
 
></TR
158
 
><TR
159
 
><TD
160
 
>See the difference between two patches.</TD
161
 
></TR
162
 
><TR
163
 
><TD
164
 
>Get more context in a patch.</TD
165
 
></TR
166
 
><TR
167
 
><TD
168
 
>Collapse and expand sections of a patch for easy
169
 
        reading.</TD
170
 
></TR
171
 
><TR
172
 
><TD
173
 
>Link to a particular section of a patch for discussion or
174
 
        review</TD
175
 
></TR
176
 
><TR
177
 
><TD
178
 
>Go to Bonsai or LXR to see more context, blame, and
179
 
        cross-references for the part of the patch you are looking at</TD
180
 
></TR
181
 
><TR
182
 
><TD
183
 
>Create a rawtext unified format diff out of any patch, no
184
 
        matter what format it came from</TD
185
 
></TR
186
 
></TBODY
187
 
></TABLE
188
 
><P
189
 
></P
190
 
><DIV
191
 
CLASS="section"
192
 
><H3
193
 
CLASS="section"
194
 
><A
195
 
NAME="patchviewer_view"
196
 
>5.7.1.1. Viewing Patches in Patch Viewer</A
197
 
></H3
198
 
><P
199
 
>The main way to view a patch in patch viewer is to click on the
200
 
        "Diff" link next to a patch in the Attachments list on a bug. You may
201
 
        also do this within the edit window by clicking the "View Attachment As
202
 
        Diff" button in the Edit Attachment screen.</P
203
 
></DIV
204
 
><DIV
205
 
CLASS="section"
206
 
><H3
207
 
CLASS="section"
208
 
><A
209
 
NAME="patchviewer_diff"
210
 
>5.7.1.2. Seeing the Difference Between Two Patches</A
211
 
></H3
212
 
><P
213
 
>To see the difference between two patches, you must first view the
214
 
        newer patch in Patch Viewer.  Then select the older patch from the
215
 
        dropdown at the top of the page ("Differences between [dropdown] and
216
 
        this patch") and click the "Diff" button. This will show you what
217
 
        is new or changed in the newer patch.</P
218
 
></DIV
219
 
><DIV
220
 
CLASS="section"
221
 
><H3
222
 
CLASS="section"
223
 
><A
224
 
NAME="patchviewer_context"
225
 
>5.7.1.3. Getting More Context in a Patch</A
226
 
></H3
227
 
><P
228
 
>To get more context in a patch, you put a number in the textbox at
229
 
        the top of Patch Viewer ("Patch / File / [textbox]") and hit enter.
230
 
        This will give you that many lines of context before and after each
231
 
        change. Alternatively, you can click on the "File" link there and it
232
 
        will show each change in the full context of the file. This feature only
233
 
        works against files that were diffed using "cvs diff".</P
234
 
></DIV
235
 
><DIV
236
 
CLASS="section"
237
 
><H3
238
 
CLASS="section"
239
 
><A
240
 
NAME="patchviewer_collapse"
241
 
>5.7.1.4. Collapsing and Expanding Sections of a Patch</A
242
 
></H3
243
 
><P
244
 
>To view only a certain set of files in a patch (for example, if a
245
 
        patch is absolutely huge and you want to only review part of it at a
246
 
        time), you can click the "(+)" and "(-)" links next to each file (to
247
 
        expand it or collapse it). If you want to collapse all files or expand
248
 
        all files, you can click the "Collapse All" and "Expand All" links at the
249
 
        top of the page.</P
250
 
></DIV
251
 
><DIV
252
 
CLASS="section"
253
 
><H3
254
 
CLASS="section"
255
 
><A
256
 
NAME="patchviewer_link"
257
 
>5.7.1.5. Linking to a Section of a Patch</A
258
 
></H3
259
 
><P
260
 
>To link to a section of a patch (for example, if you want to be
261
 
        able to give someone a URL to show them which part you are talking
262
 
        about) you simply click the "Link Here" link on the section header. The
263
 
        resulting URL can be copied and used in discussion.</P
264
 
></DIV
265
 
><DIV
266
 
CLASS="section"
267
 
><H3
268
 
CLASS="section"
269
 
><A
270
 
NAME="patchviewer_bonsai_lxr"
271
 
>5.7.1.6. Going to Bonsai and LXR</A
272
 
></H3
273
 
><P
274
 
>To go to Bonsai to get blame for the lines you are interested in,
275
 
        you can click the "Lines XX-YY" link on the section header you are
276
 
        interested in. This works even if the patch is against an old
277
 
        version of the file, since Bonsai stores all versions of the file.</P
278
 
><P
279
 
>To go to LXR, you click on the filename on the file header
280
 
        (unfortunately, since LXR only does the most recent version, line
281
 
        numbers are likely to rot).</P
282
 
></DIV
283
 
><DIV
284
 
CLASS="section"
285
 
><H3
286
 
CLASS="section"
287
 
><A
288
 
NAME="patchviewer_unified_diff"
289
 
>5.7.1.7. Creating a Unified Diff</A
290
 
></H3
291
 
><P
292
 
>If the patch is not in a format that you like, you can turn it
293
 
        into a unified diff format by clicking the "Raw Unified" link at the top
294
 
        of the page.</P
295
 
></DIV
296
 
></DIV
297
 
></DIV
298
 
><DIV
299
 
CLASS="NAVFOOTER"
300
 
><HR
301
 
ALIGN="LEFT"
302
 
WIDTH="100%"><TABLE
303
 
SUMMARY="Footer navigation table"
304
 
WIDTH="100%"
305
 
BORDER="0"
306
 
CELLPADDING="0"
307
 
CELLSPACING="0"
308
 
><TR
309
 
><TD
310
 
WIDTH="33%"
311
 
ALIGN="left"
312
 
VALIGN="top"
313
 
><A
314
 
HREF="bugreports.html"
315
 
ACCESSKEY="P"
316
 
>Prev</A
317
 
></TD
318
 
><TD
319
 
WIDTH="34%"
320
 
ALIGN="center"
321
 
VALIGN="top"
322
 
><A
323
 
HREF="index.html"
324
 
ACCESSKEY="H"
325
 
>Home</A
326
 
></TD
327
 
><TD
328
 
WIDTH="33%"
329
 
ALIGN="right"
330
 
VALIGN="top"
331
 
><A
332
 
HREF="hintsandtips.html"
333
 
ACCESSKEY="N"
334
 
>Next</A
335
 
></TD
336
 
></TR
337
 
><TR
338
 
><TD
339
 
WIDTH="33%"
340
 
ALIGN="left"
341
 
VALIGN="top"
342
 
>Filing Bugs</TD
343
 
><TD
344
 
WIDTH="34%"
345
 
ALIGN="center"
346
 
VALIGN="top"
347
 
><A
348
 
HREF="using.html"
349
 
ACCESSKEY="U"
350
 
>Up</A
351
 
></TD
352
 
><TD
353
 
WIDTH="33%"
354
 
ALIGN="right"
355
 
VALIGN="top"
356
 
>Hints and Tips</TD
357
 
></TR
358
 
></TABLE
359
 
></DIV
360
 
></BODY
361
 
></HTML
362
 
>
 
 
b'\\ No newline at end of file'