comparison mercurial/templates/static/mercurial.js @ 16129:5e50982c633c

graph: in hgrc specify line width for main branch You can specify width to visually distinguish main branch (trunk) on hgweb's graph page. Settings format is branch_name.width = value, where width in px e.g.: [graph] default.width = 3
author Constantine Linnick <theaspect@gmail.com>
date Sun, 22 Jan 2012 19:35:26 +0700
parents 2e54387976d4
children 33f702e52906
comparison
equal deleted inserted replaced
16128:004982e5d782 16129:5e50982c633c
110 110
111 x0 = this.cell[0] + this.box_size * start + this.box_size / 2; 111 x0 = this.cell[0] + this.box_size * start + this.box_size / 2;
112 y0 = this.bg[1] - this.bg_height / 2; 112 y0 = this.bg[1] - this.bg_height / 2;
113 x1 = this.cell[0] + this.box_size * end + this.box_size / 2; 113 x1 = this.cell[0] + this.box_size * end + this.box_size / 2;
114 y1 = this.bg[1] + this.bg_height / 2; 114 y1 = this.bg[1] + this.bg_height / 2;
115 115 // Width if exists
116 if(line[3] && line[3]['width']){
117 this.ctx.lineWidth = line[3]['width'];
118 }
116 this.edge(x0, y0, x1, y1, color); 119 this.edge(x0, y0, x1, y1, color);
117 120 this.ctx.lineWidth = 1;
118 } 121 }
119 122
120 // Draw the revision node in the right column 123 // Draw the revision node in the right column
121 124
122 column = node[0] 125 column = node[0]