Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

history: show incomming/outgoing changes arrows

Changeset 93fafab7889b

Parent 5a95d3b3a9fa

by diego@diegooliveira.com

Changes to one file · Browse files at 93fafab7889b Showing diff from parent 5a95d3b3a9fa Diff from another changeset...

 
169
170
171
172
173
174
 
 
 
 
175
176
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
178
179
 
169
170
171
 
 
 
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
@@ -169,11 +169,30 @@
  start, end, colour, style)     # Draw the revision node in the right column - (column, colour) = self.node - ctx.arc(cell_area.x + box_size * column + box_size / 2, - cell_area.y + cell_area.height / 2, + (column, colour, status) = self.node + arc_start_position_x = cell_area.x + box_size * column + box_size / 2; + arc_start_position_y = cell_area.y + cell_area.height / 2; + ctx.arc(arc_start_position_x, arc_start_position_y,   box_size / 5, 0, 2 * math.pi)   + if status != 0: + arrow_y = arc_start_position_y - box_size / 4 + arrow_x = arc_start_position_x + 7; + ctx.rectangle(arrow_x, arrow_y , 2, 5) + if status == 1: + ctx.move_to(arrow_x - 2, arrow_y + 5) + ctx.line_to(arrow_x + 4, arrow_y + 5) + ctx.line_to(arrow_x +1, arrow_y + 8) + ctx.line_to(arrow_x - 2, arrow_y + 5) + ctx.stroke_preserve() + elif status == -1: + ctx.move_to(arrow_x - 2, arrow_y) + ctx.line_to(arrow_x + 4, arrow_y) + ctx.line_to(arrow_x +1, arrow_y - 3) + ctx.line_to(arrow_x - 2, arrow_y) + ctx.stroke_preserve() + +   self.set_colour(ctx, colour, 0.0, 0.5)   ctx.stroke_preserve()