@@ -35,6 +35,9 function drawRevisionGraph(holder, commits_hash, graph_space) { | |||||
35 | var path, title; |
|
35 | var path, title; | |
36 | var revision_dot_overlay; |
|
36 | var revision_dot_overlay; | |
37 | $.each(commits, function(index, commit) { |
|
37 | $.each(commits, function(index, commit) { | |
|
38 | if (!commit.hasOwnProperty("space")) | |||
|
39 | commit.space = 0; | |||
|
40 | ||||
38 | y = commit_table_rows.eq(max_rdmid - commit.rdmid).position().top - graph_y_offset + CIRCLE_INROW_OFFSET; |
|
41 | y = commit_table_rows.eq(max_rdmid - commit.rdmid).position().top - graph_y_offset + CIRCLE_INROW_OFFSET; | |
39 | x = graph_x_offset + XSTEP / 2 + XSTEP * commit.space; |
|
42 | x = graph_x_offset + XSTEP / 2 + XSTEP * commit.space; | |
40 | revisionGraph.circle(x, y, 3) |
|
43 | revisionGraph.circle(x, y, 3) | |
@@ -46,6 +49,9 function drawRevisionGraph(holder, commits_hash, graph_space) { | |||||
46 | $.each(commit.parent_scmids, function(index, parent_scmid) { |
|
49 | $.each(commit.parent_scmids, function(index, parent_scmid) { | |
47 | parent_commit = commits_by_scmid[parent_scmid]; |
|
50 | parent_commit = commits_by_scmid[parent_scmid]; | |
48 | if (parent_commit) { |
|
51 | if (parent_commit) { | |
|
52 | if (!parent_commit.hasOwnProperty("space")) | |||
|
53 | parent_commit.space = 0; | |||
|
54 | ||||
49 | parent_y = commit_table_rows.eq(max_rdmid - parent_commit.rdmid).position().top - graph_y_offset + CIRCLE_INROW_OFFSET; |
|
55 | parent_y = commit_table_rows.eq(max_rdmid - parent_commit.rdmid).position().top - graph_y_offset + CIRCLE_INROW_OFFSET; | |
50 | parent_x = graph_x_offset + XSTEP / 2 + XSTEP * parent_commit.space; |
|
56 | parent_x = graph_x_offset + XSTEP / 2 + XSTEP * parent_commit.space; | |
51 | if (parent_commit.space == commit.space) { |
|
57 | if (parent_commit.space == commit.space) { |
General Comments 0
You need to be logged in to leave comments.
Login now