graph: Add '%bag-with-origins-node-type'.
authorLudovic Courtès <ludo@gnu.org>
Mon, 23 Nov 2015 22:31:53 +0000 (23:31 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 23 Nov 2015 22:34:15 +0000 (23:34 +0100)
commit38b92daa81d6c5eca77ae0cc3d454da46a64b48a
treefd0fff0db6096636bd5556b7c481c46ca1e8a5c5
parent961d0d2d2237baca7bd2099aebee279765bbd257
graph: Add '%bag-with-origins-node-type'.

* guix/scripts/graph.scm (bag-node-edges): Remove 'filter' call.  Add
case for 'origin'.
(%bag-node-type)[edges]: Add filtering here.
(%bag-with-origins-node-type): New variable.
(%node-types): Add it.
* tests/graph.scm ("bag DAG, including origins"): New test.
* tests/guix-graph.sh: Add 'bag-with-origins'.
* doc/guix.texi (Invoking guix graph): Document it.
doc/guix.texi
guix/scripts/graph.scm
tests/graph.scm
tests/guix-graph.sh