# HG changeset patch # User Paul Boddie # Date 1335569738 -7200 # Node ID 80c4c01d4c7bb0fc3d94877dc98d0689055e9fe6 # Parent d50e96b62aa416c156ddc569a18ac3b64455bf6c Removed the superfluous bg_height value from each row in the graph data. Added test suite changes. diff -r d50e96b62aa4 -r 80c4c01d4c7b patches/patch-hgweb-graph-data.diff --- a/patches/patch-hgweb-graph-data.diff Sat Apr 28 01:20:56 2012 +0200 +++ b/patches/patch-hgweb-graph-data.diff Sat Apr 28 01:35:38 2012 +0200 @@ -1,6 +1,6 @@ diff -r 55982f62651f mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Wed Apr 18 01:20:16 2012 +0300 -+++ b/mercurial/hgweb/webcommands.py Sat Apr 28 01:19:59 2012 +0200 ++++ b/mercurial/hgweb/webcommands.py Sat Apr 28 01:32:46 2012 +0200 @@ -785,6 +785,8 @@ tree = list(graphmod.colored(dag, web.repo)) canvasheight = (len(tree) + 1) * bg_height - 27 @@ -10,7 +10,7 @@ for (id, type, ctx, vtx, edges) in tree: if type != graphmod.CHANGESET: continue -@@ -795,13 +797,38 @@ +@@ -795,13 +797,37 @@ user = cgi.escape(templatefilters.person(ctx.user())) branch = ctx.branch() branch = branch, web.repo.branchtags().get(branch) == ctx.node() @@ -27,7 +27,6 @@ + edges=edgedata, + row=row, + nextrow=row+1, -+ bg_height=bg_height, + desc=desc, + user=user, + age=age, @@ -54,7 +53,7 @@ doc = e[0].__doc__ diff -r 55982f62651f mercurial/templates/static/mercurial.js --- a/mercurial/templates/static/mercurial.js Wed Apr 18 01:20:16 2012 +0300 -+++ b/mercurial/templates/static/mercurial.js Sat Apr 28 01:19:59 2012 +0200 ++++ b/mercurial/templates/static/mercurial.js Sat Apr 28 01:32:46 2012 +0200 @@ -108,21 +108,22 @@ this.bg[1] += this.bg_height; @@ -123,3 +122,24 @@ } +diff -r 55982f62651f tests/test-hgweb-commands.t +--- a/tests/test-hgweb-commands.t Wed Apr 18 01:20:16 2012 +0300 ++++ b/tests/test-hgweb-commands.t Sat Apr 28 01:32:46 2012 +0200 +@@ -957,7 +957,7 @@ +