/[CvsGraph]/cvsgraph/cvsgraph.conf.5
ViewVC logotype

Annotate of /cvsgraph/cvsgraph.conf.5

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.23 - (show annotations)
Thu Aug 5 09:35:49 2004 UTC (13 years, 4 months ago) by bertho
Branch: MAIN
Changes since 1.22: +9 -0 lines
Add tag_negate option so to include matching tags instead of ignoring them
1 .TH "cvsgraph.conf" "5" "1.4.2" "B. Stultiens" "CVS/RCS Utilties"
2 .SH "NAME"
3 cvsgraph.conf \- CVS/RCS repository grapher configuration
4 .SH "OVERVIEW"
5 The configuration file is a context free grammar where
6 empty lines and whitespace are ignored. Comments start
7 with '#' and everything until end of line is ignored.
8 .br
9 A configuration parameter is written as:
10 .br
11 <keyword> = <argument> ;
12 .br
13 .LP
14 Keywords are defined in \fBPARAMETERS\fR. The argument
15 can be either numerical or string typed.
16
17 .LP
18 Numbers may be entered as octal, decimal or hex as in 0117,
19 79 and 0x4f respectively. Floating point numbers contain a
20 single '.', but must start with a digit. Integer numbers are
21 automagically converted to floats if required.
22
23 .LP
24 Strings are C\-style strings, enclosed in double quotes
25 in which characters may be escaped with '\\' and written
26 in octal and hex escapes. Note that '\\' must be escaped
27 if it is to be entered as a character. Escapes recognized
28 are '\\[abfnrtv]', '\\[xX][0-9a-fA-F]{2}' and '\\[012][0-7]{0,2}'.
29 .br
30 Some strings are expanded with printf like conversions
31 which start with '%'. Not all are applicable at all times,
32 in which case they will expand to nothing.
33 .br
34 Note that expansions of paths are available with and without
35 trailing '/'. The distinction is required for path construction
36 to ensure that empty expansions will not redirect the path to
37 root and no double '/' in a path is generated.
38 .TP
39 %c
40 cvsroot including a trailing '/' if non\-empty
41 .TP
42 %C
43 cvsroot without trailing '/', regardless of how it was entered
44 on the commandline
45 .TP
46 %m
47 cvsmodule including trailing '/' if non\-empty
48 .TP
49 %M
50 cvsmodule without trailing '/', regardless of how it was entered
51 on the commandline
52 .TP
53 %f
54 filename without path (\fIbasename <name>\fR functionality)
55 .TP
56 %F
57 filename without path and with ",v" stripped (\fIbasename <name> ,v\fR
58 functionality)
59 .TP
60 %p
61 path part of filename. This includes a trailing '/' if the
62 path is non\-empty
63 .TP
64 %r
65 number of revisions
66 .TP
67 %b
68 number of branches
69 .TP
70 %%
71 literal '%'
72 .TP
73 %R
74 the revision number (e.g. '1.2.4.4')
75 .TP
76 %P
77 previous revision number
78 .TP
79 %B
80 the branch number (e.g. '1.2.4')
81 .TP
82 %d
83 date of revision
84 .TP
85 %a
86 author of revision
87 .TP
88 %s
89 state of revision
90 .TP
91 %l
92 The logentry of the revision. You need to enable \fBparse_logs\fR for this to
93 work. You may append an optional truncate length by writing '[num]' (with num
94 the maximum length) directly after %l. If no trunction is specified, then all
95 will be expanded. Specifying a negative truncation length means that newlines
96 should be replaced by spaces. If truncation occurs, then "..." will be
97 appended. The expansion is scanned for possible html-entities and are replaced
98 by &#...; equivalents.
99 .br
100 For example: "%l[25]" will expand up to 25 characters of the log.
101 .br
102 Note: This expansion is obsolete. Please use "%(%L%)"; see comment below.
103 .TP
104 %L
105 Same as %l, but no html-entity translations are performed.
106 .TP
107 %t
108 current tag of branch or revision
109 .TP
110 %0..%9
111 command\-line argument \-0 .. \-9
112 .TP
113 %(...%)
114 HTMLize the string withing the parenthesis. This is usefull to prevent a
115 possible cross site scripting big when expanding tags into the map generation.
116 For an exploit, you need to have an attack on your cvs-server, or you need to
117 be a complete idiot to enter a tag with '<', '>' or '"' characters.
118 .br
119 Example: a string "%(%t%)", with tag \fB><script xxx="..."><\fR will expand to
120 \fB&gt;&lt;script xxx=&#34;...&#34;&gt;&lt;\fR and not into the execution of
121 a script.
122 .br
123 Note: This method is preferred to the %l expansion, because it is more
124 generic solution (i.e. use "%(%L%)" for log expansions).
125
126 .LP
127 Fonts are numbered 0..4 (as defined in libgd) where
128 0 = tiny, 1 = small, 2 = medium (bold), 3 = large and
129 4 = giant.
130
131 .LP
132 Colors are strings, similar to html\-type colors in the form
133 "#rrggbb" with parts written in hex, where rr = red (00..ff),
134 gg = green (00\-ff) and bb = blue (00\-ff).
135
136 .LP
137 Booleans have three possible arguments: true, false and not. `Not' means
138 inverse of what it was (logical negation) and is represented by the value -1.
139 For the configuration file that means that the default value is negated.
140 However, the not possibility is a very handy tool for commandline overrides
141 generated from (CGI-)scripts.
142
143 .LP
144 There are several reserved words besides of the keywords.
145 These additional reserved words expand to numerical values:
146 .br
147 Booleans:
148 .br
149 false = 0
150 .br
151 true = 1
152 .br
153 not = -1
154 .br
155 Alignment specifiers:
156 .br
157 left = 0
158 .br
159 center = 1
160 .br
161 right = 2
162 .br
163 Image specifiers:
164 .br
165 gif = 0
166 .br
167 png = 1
168 .br
169 jpeg = 2
170 .br
171 Font specifiers:
172 .br
173 tiny = 0
174 .br
175 small = 1
176 .br
177 medium = 2
178 .br
179 large = 3
180 .br
181 giant = 4
182 .br
183 HTML level specifiers:
184 .br
185 HTML3 = 1
186 .br
187 HTML4 = 2
188 .br
189 XHTML = 3
190 .br
191
192 .SH "PARAMETERS"
193 .TP
194 \fBcvsroot\fR \fIstring\fR
195 The absolute base directory where the CSV/RCS repository can be found.
196 A '/' will be appended to the string if it is not empty and does not
197 contain a trailing '/'.
198 .br
199 Default is an empty string.
200
201 .TP
202 \fBcvsmodule\fR \fIstring\fR
203 The modulename of the CVS/RCS repository. This is converted into a
204 subdirectory name with a trailing '/'.
205 .br
206 Default is an empty string.
207
208 .TP
209 \fBcolor_bg\fR \fIcolor\fR
210 The background color of the image.
211 .br
212 Default is white ("#ffffff").
213
214 .TP
215 \fBtransparent_bg\fR \fIboolean\fR
216 The background color of the image is to be the transparent color. This is
217 only usefull for PNG images. Be sure to set \fBcolor_bg\fR to something
218 reasonable to make sure that the image is viewable with programs that do not
219 support transparency.
220 .br
221 Default is false.
222
223 .TP
224 \fBdate_format\fR \fIstring\fR
225 The \fBstrftime(3)\fR format string for date and time representation in
226 the '%d' expansion.
227 .br
228 Default is "%d\-%b\-%Y %H:%M:%S".
229
230 .TP
231 \fBbox_shadow\fR \fIboolean\fR
232 A boolean whether or not to draw a shadow for the boxes of
233 revisions and branches.
234 .br
235 Default is false.
236
237 .TP
238 \fBupside_down\fR \fIboolean\fR
239 Draw the entire tree upside down if set. I.e. highest revisions are
240 at the top of the image. See also \fBcvsgraph(1)\fR option '\fB-u\fR'.
241 .br
242 Default is false.
243
244 .TP
245 \fBleft_right\fR \fIboolean\fR
246 Draw the entire tree from left to right instead of top down if set.
247 I.e. highest revisions are at the right of the image. You can also
248 draw the tree right to left when \fBupside_down\fR is set too.
249 .br
250 Default is false.
251
252 .TP
253 \fBstrip_untagged\fR \fIboolean\fR
254 Ommit all revisions that do not have tags and are not a branchpoint. This
255 reduces the image-size, but can be confusing when looking for a specific
256 revision. See also \fBcvsgraph(1)\fR option '\fB-s\fR'.
257 .br
258 Default is false.
259
260 .TP
261 \fBstrip_first_rev\fR \fIboolean\fR
262 Also ommit the first revision in a branch if it does not have tags and is not a
263 branchpoint. This has only effect if \fBstrip_untagged\fR is set. See also
264 \fBcvsgraph(1)\fR option '\fB-S\fR'.
265 .br
266 Default is false.
267
268 .TP
269 \fBauto_stretch\fR \fIboolean\fR
270 Try to stretch the inter\-revision spacing to move the trunks more to the left,
271 effectively reducing the image's size. See also \fBcvsgraph(1)\fR option '\fB-k\fR'.
272 .br
273 Default is false.
274
275 .TP
276 \fBuse_ttf\fR \fIboolean\fR
277 Enable truetype rendering of strings using the FreeType interface of libgd.
278 Note that ttf rendering is significantly slower than libgd's bitmap fonts.
279 .br
280 Default is false.
281
282 .TP
283 \fBanti_alias\fR \fIboolean\fR
284 Enable antialias rendering of truetype fonts. This has only effect if
285 \fBuse_ttf\fR is set. Enabling anti_alias gives very nice results.
286 However, that is at the expense of 8-bit vs. 4-bit colormap images,
287 which can be a major drawback because the size of 8-bit images is 3..4
288 times that of 4-bit images (with compressed PNG as output).
289 .br
290 Default is true.
291
292 .TP
293 \fBthick_lines\fR \fInumber\fR
294 Set the thickness of connector lines between boxes. Normally, lines
295 are drawn one pixel wide, but can look somewhat thin. Setting the thickness
296 to anything over 5 would be plain ugly (but hey, who is to debate tast:-).
297 Values less than 1 and over 11 are clipped.
298 .br
299 Default is 1.
300
301 .TP
302 \fBparse_logs\fR \fIboolean\fR
303 Enable the parsing of the \fIentire\fR ,v file to read the log-entries between
304 revisions. This is necessary for the %l expansion to work, but slows down
305 parsing by a very large factor. You've been warned.
306 .br
307 Default is false.
308
309 .TP
310 \fBhtml_level\fR \fInumber\fR
311 Set the compliance to different types of HTML. The generated image map is
312 slightly different for version 3.x, 4.x and XHTML. You can use the predefined
313 identifiers (HTML3, HTML4 and XHTML) to set this value. Commandline option '\fB-x\fR'
314 overrides the setting.
315 .br
316 Default is HTML3 (3.x compatibility).
317
318 .TP
319 \fBbranch_ttfont\fR \fIstring\fR
320 .TP
321 \fBbranch_tag_ttfont\fR \fIstring\fR
322 .TP
323 \fBrev_ttfont\fR \fIstring\fR
324 .TP
325 \fBrev_text_ttfont\fR \fIstring\fR
326 .TP
327 \fBtag_ttfont\fR \fIstring\fR
328 .TP
329 \fBtitle_ttfont\fR \fIstring\fR
330 Set the truetype font face or filename for the individual elements. Gd's bitmap
331 fonts are used as a fallback if the font cannot be found or contains errors.
332 .br
333 Default none.
334
335 .TP
336 \fBbranch_ttsize\fR \fIfloat\fR
337 .TP
338 \fBbranch_tag_ttsize\fR \fIfloat\fR
339 .TP
340 \fBrev_ttsize\fR \fIfloat\fR
341 .TP
342 \fBrev_text_ttsize\fR \fIfloat\fR
343 .TP
344 \fBtag_ttsize\fR \fIfloat\fR
345 .TP
346 \fBtitle_ttsize\fR \fIfloat\fR
347 Set the truetype font size for the individual elements. See also *_ttfont.
348 .br
349 Default 0.0.
350
351 .TP
352 \fBtag_font\fR \fInumber\fR
353 The font used to draw tags in the revision boxes.
354 .br
355 Default is tiny.
356
357 .TP
358 \fBtag_color\fR \fIcolor\fR
359 The color used to draw tags in the revision boxes.
360 .br
361 Default is black ("#000000").
362
363 .TP
364 \fBtag_ignore\fR \fIstring\fR
365 An extended regular expression as described in \fBregex(7)\fR to match all tags
366 that should not be displayed in the graph. Note that a tag will always be
367 displayed if it matches the \fBmerge_from\fR/\fBmerge_to\fR expressions
368 regardless to it being set to ignore here.
369 .br
370 Example: tag_ignore = "(test|alpha)_release.*";
371 .br
372 Default is empty (no matching occurs).
373
374 .TP
375 \fBtag_nocase\fR \fIboolean\fR
376 Ignore the case in regex matching in \fBtag_ignore\fR.
377 .br
378 Default is false.
379
380 .TP
381 \fBtag_negate\fR \fIboolean\fR
382 Negate the matching criteria of the \fBtag_ignore\fR setting. If set, tags that
383 match the \fBtag_ignore\fR will be shown, instead of matches being ignored. In
384 any case, tags that match \fBmerge_from\fR/\fBmerge_to\fR expressions will
385 never be suppressed.
386 .br
387 Default is false.
388
389 .TP
390 \fBrev_font\fR \fInumber\fR
391 .br
392 Default is tiny.
393
394 .TP
395 \fBrev_color\fR \fIcolor\fR
396 The color of revision boxes, including the revision number.
397 .br
398 Default is black ("#000000").
399
400 .TP
401 \fBrev_bgcolor\fR \fIcolor\fR
402 Revision box background color. This is the interior fill of the
403 box.
404 .br
405 Default is white ("#ffffff").
406
407 .TP
408 \fBrev_separator\fR \fInumber\fR
409 Space between tags in revision boxes.
410 .br
411 Default is 0.
412
413 .TP
414 \fBrev_minline\fR \fInumber\fR
415 The minimum vertical distance between revision boxes.
416 .br
417 Default is 0.
418
419 .TP
420 \fBrev_maxline\fR \fInumber\fR
421 The maximum vertical distance between revision boxes.
422 This has only effect if \fBauto_stretch\fR is set to true (or option '\fB-k\fR'
423 is specified).
424 .br
425 Default is 5 times \fBrev_minline\fR.
426
427 .TP
428 \fBrev_lspace\fR \fInumber\fR
429 .TP
430 \fBrev_rspace\fR \fInumber\fR
431 .TP
432 \fBrev_tspace\fR \fInumber\fR
433 .TP
434 \fBrev_bspace\fR \fInumber\fR
435 Interior spacing in revision boxes of left, right, top and bottom
436 respectively. Note that the left right spacing is not used separately
437 because text is center aligned.
438 .br
439 Default is 0.
440
441 .TP
442 \fBrev_text\fR \fIstring\fR
443 The additional text in a revision box under the revision number.
444 .br
445 Default is "%d".
446
447 .TP
448 \fBrev_text_font\fR \fInumber\fR
449 The font of the additional text in a revision box under the revision number.
450 .br
451 Default is tiny.
452
453 .TP
454 \fBrev_text_color\fR \fIcolor\fR
455 The font color of the additional text in a revision box under the revision
456 number.
457 .br
458 Default is black ("#000000").
459
460 .TP
461 \fBrev_maxtags\fR \fInumber\fR
462 Limit the number of tags in a revision box. Old trees tend to have some
463 revisions with extremely many tags attached, which would generate a huge
464 revision box when drawn. Limiting the number is a fair solution. Note that tag
465 sorting is not specified in the \fBrcsfile(7)\fR, but \fBcvs(1)\fR will
466 normally have the newest tags located before older ones. Therefore, limiting
467 the number of tags would most likely only affect older tags to be stripped.
468 However, no guarantees are given that a specific tag is present when the limit
469 is imposed. An ellipsis (...) is shown in the revision box when the number of
470 tags got truncated.
471 .br
472 Default is 0, meaning all tags shown.
473
474 .TP
475 \fBmerge_color\fR \fIcolor\fR
476 The color of the lines to show merges.
477 .br
478 Default is black ("#000000").
479
480 .TP
481 \fBmerge_front\fR \fIboolean\fR
482 The mergelines are drawn on top of the image if true. Otherwise, mergelines
483 are drawn underneath.
484 .br
485 Default is false.
486
487 .TP
488 \fBmerge_nocase\fR \fIboolean\fR
489 Ignore the case in regex matching in \fBmerge_from\fR and \fBmerge_to\fR.
490 .br
491 Default is false.
492
493 .TP
494 \fBmerge_from\fR \fIstring\fR
495 The \fBmerge_from\fR is an extended regular expression as described in
496 \fBregex(7)\fR and POSIX 1003.2 (see also Single Unix Specification at
497 http://www.opengroup.com ). The matching tags describe source revisions of
498 merges. Each match is subsequently used in a search for the destination tag as
499 described by the \fBmerge_to\fR parameter.
500 .br
501 Note: normal string rules apply. Therefore, all backslashes '\\' must be
502 escaped, e.g. "\\." must be written as "\\\\.".
503 .br
504 Example: merge_from = "^from_(.*)";
505 .br
506 Default is empty (no matching occurs).
507
508 .TP
509 \fBmerge_to\fR \fIstring\fR
510 .br
511 The \fBmerge_to\fR is an extended regular expression with a twist. All
512 subexpressions from the \fBmerge_from\fR are expanded into \fBmerge_to\fR using
513 %[1-9] (in contrast to \\[1-9] for backreferences). Care is taken to escape
514 the constructed expression. A '$' at the end of the \fBmerge_to\fR expression
515 can be important to prevent 'near match' references. Normally, you want the
516 destination to be a good representation of the source. However, this depends
517 on how well you defined the tags in the first place.
518 .br
519 Example: merge_to = "^merge_%1$";
520 .br
521 Above example, combined with the merge_from example would match a tag
522 "from_BugFix_2002" to the merge-destination with tag "merge_BugFix_2002".
523 .br
524 Default is empty (no matching occurs).
525
526 .TP
527 \fBmerge_arrows\fR \fIboolean\fR
528 .br
529 Enable the use of arrows pointing to the merge destination.
530 .br
531 Default is true.
532
533 .TP
534 \fBarrow_width\fR \fInumber\fR
535 .TP
536 \fBarrow_length\fR \fInumber\fR
537 .br
538 Specifies the size of the arrow pointing to the merge destination.
539 .br
540 Default is arrow_width=3, arrow_length=12.
541
542 .TP
543 \fBbranch_font\fR \fInumber\fR
544 The font of the number in a branch box.
545 .br
546 Default is tiny.
547
548 .TP
549 \fBbranch_tag_font\fR \fInumber\fR
550 The font of the tags in a branch box.
551 .br
552 Default is tiny.
553
554 .TP
555 \fBbranch_color\fR \fIcolor\fR
556 All branch element's color excluding tags.
557 .br
558 Default is black ("#000000").
559
560 .TP
561 \fBbranch_tag_color\fR \fIcolor\fR
562 All branch tags' color.
563 .br
564 Default is black ("#000000").
565
566 .TP
567 \fBbranch_lspace\fR \fInumber\fR
568 .TP
569 \fBbranch_rspace\fR \fInumber\fR
570 .TP
571 \fBbranch_tspace\fR \fInumber\fR
572 .TP
573 \fBbranch_bspace\fR \fInumber\fR
574 Interior spacing of branch boxes.
575 .br
576 Default is 0.
577
578 .TP
579 \fBbranch_margin\fR \fInumber\fR
580 Exterior spacing of branches. Each branch will be spaced
581 with a minimum of this value.
582 .br
583 Default is 0.
584
585 .TP
586 \fBbranch_connect\fR \fInumber\fR
587 Length of the vertical connector from a revision to the branch box.
588 .br
589 Default is 0.
590
591 .TP
592 \fBbranch_dupbox\fR \fIboolean\fR
593 Add an extra branch box at the end of the trunk. Useful for upside down drawn
594 trees. If there are no commits on a branch, then no extra box is added,
595 regardless of the setting of this option.
596 .br
597 Default is false.
598
599 .TP
600 \fBbranch_fold\fR \fIboolean\fR
601 Fold branches that have no commits into one branch-box. This helps to reduce
602 the size of the overall image by a huge factor (5..10 in most cases). Many
603 applications of CVS use many branches, but not all files in the repository
604 change for each branch. Especially stable files line .cvsignore or older code
605 tend to accumulate many empty branches at one and the same revision. Folding
606 these branches into one box reduces the width of these images considerably.
607 .br
608 Default is true.
609
610 .TP
611 \fBbranch_foldall\fR \fIboolean\fR
612 Fold all empty branches that sprout from the save revision in one box. If
613 this option is not set, then multiple boxes will be created if the empty
614 branches are interspaced with ones that have revisions attached. When this
615 option is set, then all empty branches will be collected and put into the
616 box of the firts occuring empty branch on the revision's branchpoint.
617 Setting this option will reduce imagesize with interspaced commits to the
618 a maximum.
619 .br
620 Default is false.
621
622 .TP
623 \fBtitle\fR \fIstring\fR
624 The title of the image.
625 .br
626 Default is empty string.
627
628 .TP
629 \fBtitle_x\fR \fInumber\fR
630 .TP
631 \fBtitle_y\fR \fInumber\fR
632 Postion of title.
633 .br
634 Default is 0.
635
636 .TP
637 \fBtitle_font\fR \fInumber\fR
638 The font of the title.
639 .br
640 Default is tiny.
641
642 .TP
643 \fBtitle_align\fR \fInumber\fR
644 Horizontal alignment of the title.
645 .br
646 Default is left.
647
648 .TP
649 \fBtitle_color\fR \fIcolor\fR
650 The color of the title.
651 .br
652 Default is black ("#000000").
653
654 .TP
655 \fBmargin_top\fR \fInumber\fR
656 .TP
657 \fBmargin_bottom\fR \fInumber\fR
658 .TP
659 \fBmargin_left\fR \fInumber\fR
660 .TP
661 \fBmargin_right\fR \fInumber\fR
662 Margins of the image. Note: the title position is not affected by
663 the margin.
664 .br
665 Default is 0.
666
667 .TP
668 \fBimage_type\fR \fInumber\fR
669 Image types are available if they can be found in
670 the gd library. Newer versions of gd do not have
671 gif anymore. CvsGraph will automatically generate
672 png images instead.
673 .br
674 Default is dependent on availability and is prioritized in the order
675 png, gif and jpeg.
676
677 .TP
678 \fBimage_quality\fR \fInumber\fR
679 The quality of a jpeg image (1..100)
680 .br
681 Default is 100.
682
683 .TP
684 \fBmap_name\fR \fIstring\fR
685 The name= attribute in <map name="mapname">...</map> in the
686 generated HTML map.
687 .br
688 Default is "CvsGraphImageMap".
689
690 .TP
691 \fBmap_branch_href\fR \fIstring\fR
692 .TP
693 \fBmap_rev_href\fR \fIstring\fR
694 .TP
695 \fBmap_diff_href\fR \fIstring\fR
696 These are the href= attributes in the <area>
697 tags of html.
698 .br
699 Default are:
700 .br
701 branch: "href=\\"unset: conf.map_branch_href\\""
702 .br
703 revision: "href=\\"unset: conf.map_rev_href\\""
704 .br
705 diff: "href=\\"unset: conf.map_diff_href\\""
706
707 .TP
708 \fBmap_branch_alt\fR \fIstring\fR
709 .TP
710 \fBmap_rev_alt\fR \fIstring\fR
711 .TP
712 \fBmap_diff_alt\fR \fIstring\fR
713 These are the alt= attributes in the <area>
714 tags of html.
715 .br
716 Default are "alt=\\"%B\\"", "alt=\\"%R\\"" and
717 "alt=\\"%P &lt;\-&gt; %R\\"" respectively.
718
719 .SH "AUTHOR"
720 \fBCvsGraph\fR is written and maintained by B. Stultiens.
721 .br
722 Send comments and bugreports to \fIcvsgraph@akhphd.au.dk\fR and
723 visit the homepage at:
724 .br
725 \fIhttp://www.akhphd.au.dk/~bertho/cvsgraph\fR.
726 .SH "SEE ALSO"
727 .BR cvsgraph(1)

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0