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

Annotate of /cvsgraph/cvsgraph.conf

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


Revision 1.32 - (show annotations)
Thu Dec 15 13:06:09 2005 UTC (11 years, 10 months ago) by bertho
Branch: MAIN
Changes since 1.31: +57 -0 lines
Implemented multiple regex match for triplets merge_{from,to,color} so
that merges can be detected with more disjoined tag definitions.
1 # CvsGraph configuration
2 #
3 # - Empty lines and whitespace are ignored.
4 #
5 # - Comments start with '#' and everything until
6 # end of line is ignored.
7 #
8 # - Strings are C-style strings in which characters
9 # may be escaped with '\' and written in octal
10 # and hex escapes. Note that '\' must be escaped
11 # if it is to be entered as a character.
12 #
13 # - Some strings are expanded with printf like
14 # conversions which start with '%'. Not all
15 # are applicable at all times, in which case they
16 # will expand to nothing.
17 # %c = cvsroot (with trailing '/')
18 # %C = cvsroot (*without* trailing '/')
19 # %m = module (with trailing '/')
20 # %M = module (*without* trailing '/')
21 # %f = filename without path
22 # %F = filename without path and with ",v" stripped
23 # %p = path part of filename (with trailing '/')
24 # %r = number of revisions
25 # %b = number of branches
26 # %% = '%'
27 # %R = the revision number (e.g. '1.2.4.4')
28 # %P = previous revision number
29 # %B = the branch number (e.g. '1.2.4')
30 # %d = date of revision
31 # %a = author of revision
32 # %s = state of revision
33 # %t = current tag of branch or revision
34 # %0..%9 = command-line argument -0 .. -9
35 # %l = HTMLized log entry of the revision
36 # NOTE: %l is obsolete. See %(%) and cvsgraph.conf(5) for
37 # more details.
38 # %L = log entry of revision
39 # The log entry expansion takes an optional argument to
40 # specify maximum length of the expansion like %L[25].
41 # %(...%) = HTMLize the string within the parenthesis.
42 #
43 # - Numbers may be entered as octal, decimal or
44 # hex as in 0117, 79 and 0x4f respectively.
45 #
46 # - Fonts are numbered 0..4 (defined as in libgd)
47 # 0 = tiny
48 # 1 = small
49 # 2 = medium (bold)
50 # 3 = large
51 # 4 = giant
52 #
53 # - Colors are a string like HTML type colors in
54 # the form "#rrggbb" with parts written in hex
55 # rr = red (00..ff)
56 # gg = green (00-ff)
57 # bb = blue (00-ff)
58 #
59 # *** FIXME ****** working on dynamic colors ***
60 #
61 # Colors can also be defined as conditional expressions so
62 # that revision/branch conditions can be repesented visually:
63 # color = [ "key" op "content" truecase falsecase ];
64 # Operator 'op' can be one of:
65 # * =~ contained in regex
66 # * =* contained in regex, case insensitive
67 # * !~ not contained in regex
68 # * !* not contained in regex, case insensitive
69 # * < less than timestamp or rev/branch number
70 # * <= less or equal than timestamp or rev/branch number
71 # * > greater than timestamp or rev/branch number
72 # * >= greater or equal than timestamp or rev/branch number
73 # * == equal than timestamp or rev/branch number
74 # * != not equal than timestamp or rev/branch number
75 # The 'content' is one of:
76 # * POSIX 1003.2 extended regular expression
77 # * timestamp in UTC format: "YYYY.MM.DD.hh.mm.ss"
78 # * revision or branch number
79 # The 'key' can be one of:
80 # * state State of the revision
81 # * author The auther of a revision
82 # * tag both revision- and branch-tags
83 # * date date of the revision
84 # * rev numeric revision- or branch-number
85 # Both 'truecase' and 'falsecase' can be either a color-string,
86 # as described above, or a new conditional expression.
87 # Examples:
88 # rev_bgcolor = [ "state" =~ "dead" "#e08080" "#f0f0f0" ];
89 # branch_color= [ "rev" < "2.1.2" "#000000" [ "tag" =~ "XyZ.*" "#123456" "#654321" ] ];
90 # Note that not all colors can be changed on the fly. For example,
91 # branch_color cannot be be changed based on revision identification
92 # (i.e. author, date or state). The color_bg is always unique and
93 # fixed (all expressions will evaluate to the false case).
94 #
95 # - There are several reserved words besides of the
96 # feature-keywords. These additional reserved words
97 # expand to numerical values:
98 # * false = 0
99 # * true = 1
100 # * not = -1
101 # * left = 0
102 # * center = 1
103 # * right = 2
104 # * gif = 0
105 # * png = 1
106 # * jpeg = 2
107 # * tiny = 0
108 # * small = 1
109 # * medium = 2
110 # * large = 3
111 # * giant = 4
112 #
113 # - Booleans have three possible arguments: true, false
114 # and not. `Not' means inverse of what it was (logical
115 # negation) and is represented by the value -1.
116 # For the configuration file that means that the default
117 # value is negated.
118 #
119
120 # cvsroot <string>
121 # The *absolute* base directory where the
122 # CVS/RCS repository can be found
123 # cvsmodule <string>
124 #
125 cvsroot = "/home/bertho/tmp/cvstest";
126 cvsmodule = "ttt";
127
128 # color_bg <color>
129 # The background color of the image
130 # transparent_bg <boolean>
131 # Make color_bg the transparent color (only useful with PNG)
132 color_bg = "#ffffff";
133 transparent_bg = false;
134
135 # date_format <string>
136 # The strftime(3) format string for date and time
137 date_format = "%d-%b-%Y %H:%M:%S";
138
139 # box_shadow <boolean>
140 # Add a shadow around the boxes
141 # upside_down <boolean>
142 # Reverse the order of the revisions
143 # left_right <boolean>
144 # Draw the image left to right instead of top down,
145 # or right to left is upside_down is set simultaneously.
146 # strip_untagged <boolean>
147 # Remove all untagged revisions except the first, last and tagged ones
148 # strip_first_rev <boolean>
149 # Also remove the first revision if untagged
150 # auto_stretch <boolean>
151 # Try to reformat the tree to minimize image size
152 # use_ttf <boolean>
153 # Use TrueType fonts for text
154 # anti_alias <boolean>
155 # Enable pretty TrueType anti-alias drawing
156 # thick_lines <number>
157 # Draw all connector lines thicker (range: 1..11)
158 box_shadow = true;
159 upside_down = false;
160 left_right = false;
161 strip_untagged = false;
162 strip_first_rev = false;
163 #auto_stretch = true; # not yet stable.
164 use_ttf = false;
165 anti_alias = true;
166 thick_lines = 1;
167
168 # msg_color <color>
169 # Sets the error/warning message color
170 # msg_font <number>
171 # msg_ttfont <string>
172 # msg_ttsize <float>
173 # Sets the error/warning message font
174 msg_color = "#800000";
175 msg_font = medium;
176 msg_ttfont = "/dos/windows/fonts/ariali.ttf";
177 msg_ttsize = 11.0;
178
179 # parse_logs <boolean>
180 # Enable the parsing of the *entire* ,v file to read the
181 # log-entries between revisions. This is necessary for
182 # the %L expansion to work, but slows down parsing by
183 # a very large factor. You're warned.
184 parse_logs = false;
185
186 # tag_font <number>
187 # The font of the tag text
188 # tag_color <color>
189 # The color of the tag text
190 # tag_ignore <string>
191 # A extended regular expression to exclude certain tags from view.
192 # See regex(7) for details on the format.
193 # Note 1: tags matched in merge_from/merge_to are always displayed unless
194 # tag_ignore_merge is set to true.
195 # Note 2: normal string rules apply and special characters must be
196 # escaped.
197 # tag_ignore_merge <boolean>
198 # If set to true, allows tag_ignore to also hide merge_from and merge_to
199 # tags.
200 # tag_nocase <boolean>
201 # Ignore the case in tag_ignore expressions
202 # tag_negate <boolean>
203 # Negate the matching criteria of tag_ignore. When true, only matching
204 # tags will be shown.
205 # Note: tags matched with merge_from/merge_to will still be displayed.
206 tag_font = medium;
207 tag_ttfont = "/dos/windows/fonts/ariali.ttf";
208 tag_ttsize = 11.0;
209 tag_color = "#007000";
210 #tag_ignore = "(test|alpha)_release";
211 #tag_ignore_merge = false;
212 #tag_nocase = false;
213 #tag_negate = false;
214
215 # rev_hidenumber <boolean>
216 # If set to true no revision numbers will be printed in the graph.
217 #rev_hidenumber = false;
218 rev_font = giant;
219 rev_ttfont = "/dos/windows/fonts/arial.ttf";
220 rev_ttsize = 12.0;
221 rev_color = "#000000";
222 rev_bgcolor = "#f0f0f0";
223 rev_separator = 1;
224 rev_minline = 15;
225 rev_maxline = 75;
226 rev_lspace = 5;
227 rev_rspace = 5;
228 rev_tspace = 3;
229 rev_bspace = 3;
230 rev_text = "%d"; # or "%d\n%a, %s" for author and state too
231 rev_text_font = tiny;
232 rev_text_ttfont = "/dos/windows/fonts/times.ttf";
233 rev_text_ttsize = 9.0;
234 rev_text_color = "#500020";
235 rev_maxtags = 25;
236
237 # merge_color <color>
238 # The color of the line connecting merges
239 # See note2 below.
240 # merge_front <boolean>
241 # If true, draw the merge-lines on top if the image
242 # merge_nocase <boolean>
243 # Ignore case in regular expressions
244 # merge_from <string>
245 # A regex describing a tag that is used as the merge source
246 # See note2 below.
247 # merge_to <string>
248 # A regex describing a tag that is the target of the merge
249 # See note2 below.
250 # merge_findall <boolean>
251 # Try to match all merge_to targets possible. This can result in
252 # multiple lines originating from one tag.
253 # merge_arrows <boolean>
254 # Use arrows to point to the merge destination. Default is true.
255 # merge_cvsnt <boolean>
256 # Use CVSNT's mergepoint registration for merges
257 # merge_cvsnt_color <color>
258 # The color of the line connecting merges from/to registered
259 # mergepoints.
260 # arrow_width <number>
261 # arrow_length <number>
262 # Specify the size of the arrows. Default is 3 wide and 12 long.
263 #
264 # NOTE:
265 # - The merge_from is an extended regular expression as described in
266 # regex(7) and POSIX 1003.2 (see also Single Unix Specification at
267 # http://www.opengroup.com).
268 # - The merge_to is an extended regular expression with a twist. All
269 # subexpressions from the merge_from are expanded into merge_to
270 # using %[1-9] (in contrast to \[1-9] for backreferences). Care is
271 # taken to escape the constructed expression.
272 # - A '$' at the end of the merge_to expression can be important to
273 # prevent 'near match' references. Normally, you want the destination
274 # to be a good representation of the source. However, this depends
275 # on how well you defined the tags in the first place.
276 #
277 # Example:
278 # merge_from = "^f_(.*)";
279 # merge_to = "^t_%1$";
280 # tags: f_foo, f_bar, f_foobar, t_foo, t_bar
281 # result:
282 # f_foo -> "^t_foo$" -> t_foo
283 # f_bar -> "^t_bar$" -> t_bar
284 # f_foobar-> "^t_foobar$" -> <no match>
285 #
286 # NOTE 2:
287 # It is now possible to use multiple regex combination to find merges
288 # which cannot be expressed in one regex.
289 # The triplet merge_{from,to,color} can be used multiple times to
290 # define disjoined tag-definitions.
291 # Example config:
292 # merge_color = "#ff0000";
293 # merge_from = "(.*)";
294 # merge_to = "^pm-%1-to-(.*)";
295 # merge_color = "#00ff00";
296 # merge_from = "^closed-(.*)";
297 # merge_to = "^merged-%1-toMain";
298 #
299 # This will match "rel-1-2-1" to "pm-rel-1-2-1-to-branch-1-2-2" with
300 # bright red and match "closed-branch-1-2-2" to "merged-branch-1-2-2-toMain"
301 # with bright green.
302 # There is no limit on how many times you may repeat the triplet.
303 #
304 merge_color = "#a000a0";
305 merge_front = false;
306 merge_nocase = false;
307 merge_from = "^f_(.*)";
308 merge_to = "^t_%1$";
309 merge_findall = false;
310
311 #merge_arrows = true;
312 #arrow_width = 3;
313 #arrow_length = 12;
314
315 merge_cvsnt = true;
316 merge_cvsnt_color = "#606000";
317
318 # branch_font <number>
319 # The font of the number and tags
320 # branch_color <color>
321 # All branch element's color
322 # branch_[lrtb]space <number>
323 # Interior spacing (margin)
324 # branch_margin <number>
325 # Exterior spacing
326 # branch_connect <number>
327 # Length of the vertical connector
328 # branch_dupbox <boolean>
329 # Add the branch-tag also at the bottom/top of the trunk
330 # branch_fold <boolean>
331 # Fold empty branches in one box to save space
332 # branch_foldall <boolean>
333 # Put all empty branches in one box, even if they
334 # were interspaced with branches with revisions.
335 # branch_resort <boolean>
336 # Resort the branches by the number of revisions to save space
337 # branch_subtree <string>
338 # Only show the branch denoted or all branches that sprout
339 # from the denoted revision. The argument may be a symbolic
340 # tag. This option you would normally want to set from the
341 # command line with the -O option.
342 branch_font = medium;
343 branch_ttfont = "/dos/windows/fonts/arialbd.ttf";
344 branch_ttsize = 18.0;
345 branch_tag_color= "#000080";
346 branch_tag_font = medium;
347 branch_tag_ttfont = "/dos/windows/fonts/arialbi.ttf";
348 branch_tag_ttsize = 14.0;
349 branch_color = "#0000c0";
350 branch_bgcolor = "#ffffc0";
351 branch_lspace = 5;
352 branch_rspace = 5;
353 branch_tspace = 3;
354 branch_bspace = 3;
355 branch_margin = 15;
356 branch_connect = 8;
357 branch_dupbox = false;
358 branch_fold = true;
359 branch_foldall = false;
360 branch_resort = false;
361 #branch_subtree = "1.2.4";
362
363 # title <string>
364 # The title string is expanded (see above for details)
365 # title_[xy] <number>
366 # Position of title
367 # title_font <number>
368 # The font
369 # title_align <number>
370 # 0 = left
371 # 1 = center
372 # 2 = right
373 # title_color <color>
374 title = "%c%m%f\nRevisions: %r, Branches: %b";
375 title_x = 10;
376 title_y = 5;
377 title_font = small;
378 title_ttfont = "/dos/windows/fonts/times.ttf";
379 title_ttsize = 10.0;
380 title_align = left;
381 title_color = "#800000";
382
383 # Margins of the image
384 # Note: the title is outside the margin
385 margin_top = 35;
386 margin_bottom = 10;
387 margin_left = 10;
388 margin_right = 10;
389
390 # Image format(s)
391 # image_type <number|{gif,jpeg,png}>
392 # gif (0) = Create gif image
393 # png (1) = Create png image
394 # jpeg (2) = Create jpeg image
395 # Image types are available if they can be found in
396 # the gd library. Newer versions of gd do not have
397 # gif anymore. CvsGraph will automatically generate
398 # png images instead.
399 # image_quality <number>
400 # The quality of a jpeg image (1..100)
401 # image_compress <number>
402 # Set the compression of a PNG image (gd version >= 2.0.12).
403 # Values range from -1 to 9 where:
404 # - -1 default compression (usually 3)
405 # - 0 no compression
406 # - 1 lowest level compression
407 # - ... ...
408 # - 9 highest level of compression
409 # image_interlace <boolean>
410 # Write interlaces PNG/JPEG images for progressive loading.
411 image_type = png;
412 image_quality = 75;
413 image_compress = 3;
414 image_interlace = true;
415
416 # HTML image map generation
417 # map_name <string>
418 # The name= attribute in <map name="mapname">...</map>
419 # map_branch_href <string>
420 # map_branch_alt <string>
421 # map_rev_href <string>
422 # map_rev_alt <string>
423 # map_diff_href <string>
424 # map_diff_alt <string>
425 # map_merge_href <string>
426 # map_merge_alt <string>
427 # These are the href= and alt= attributes in the <area>
428 # tags of HTML. The strings are expanded (see above).
429 map_name = "MyMapName";
430 map_branch_href = "href=\"%9cvsweb_graph.cgi/%m%p?only_with_tag=%(%t%)%8\"";
431 map_branch_alt = "alt=\"%0 %(%t%) (%B)\"";
432 map_rev_href = "href=\"%9cvsweb_graph.cgi/%m%p%F?rev=%R&amp;content-type=text/x-cvsweb-markup%8\"";
433 map_rev_alt = "alt=\"%1 %(%t%) (%R)\"";
434 map_diff_href = "href=\"%9cvsweb_graph.cgi/%m%p%F.diff?r1=%P&amp;r2=%R%8\"";
435 map_diff_alt = "alt=\"%2 %P &lt;-&gt; %R\"";
436 map_merge_href = "href=\"%9cvsweb_graph.cgi/%m%p%F.diff?r1=%P&amp;r2=%R%8\"";
437 map_merge_alt = "alt=\"%2 %P &lt;-&gt; %R\"";
438

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0