Mercurial > public > mercurial-scm > hg
diff tests/test-glog.t @ 14131:03e1c2d35c6a
graphmod: correctly emit nodes with more than 2 predecessors
The grandparent() function was returning only the closest predecessor of a
missing parent while it must return all of them to display a correct ancestry
graph.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 01 May 2011 15:51:46 +0200 |
parents | 2d7cb340a53f |
children | 7d3bd0640262 |
line wrap: on
line diff
--- a/tests/test-glog.t Sun May 01 15:51:20 2011 +0200 +++ b/tests/test-glog.t Sun May 01 15:51:46 2011 +0200 @@ -1411,8 +1411,33 @@ \s*0 (re) $ hg log -G --only-merges --template 'nodetag {rev}\n' | grep nodetag | wc -l \s*28 (re) - $ hg log -G --no-merges --template 'nodetag {rev}\n' | grep nodetag | wc -l - \s*9 (re) + $ hg log -G --no-merges --template 'nodetag {rev}\n' + o nodetag 35 + | + o nodetag 34 + |\ + | \ + | |\ + | | \ + | | |\ + | | | \ + | | | |\ + | | | | \ + | | | | |\ + +-+-+-+-----o nodetag 33 + | | | | | | + +---------o nodetag 29 + | | | | | + +-+-+---o nodetag 27 + | | | |/ + | | | o nodetag 3 + | | |/ + | | o nodetag 2 + | |/ + | o nodetag 1 + |/ + o nodetag 0 + $ hg log -G -d 'brace ) in a date' abort: invalid date: 'brace ) in a date' [255]