git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [TopGit PATCH v2] tg-graph: print dependency graph like git log --graph

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
May 21, 2009, 09:29 UTC
Message-ID
<36ca99e90905210229s3e621a43h1a336d908d44e685@mail.gmail.com>
In-Reply-To
<20090520115814.GT8212@noris.de>
On Wed, May 20, 2009 at 13:58, Michael Radziej <mir@noris.de> wrote:
Show 11 quoted lines
> On Wed, May 20, Bert Wesarg wrote:
>
>> > a) graphviz 2.16-3ubuntu2
>> >
>> > mir@mir:topgit (bw/tg-graph-v2)> tg graph
>> > gvpr: "/usr/local/share/topgit/graph.gvpr", line 952: gg_nl_ret +=
>> > graph_output_commit_line();<<<
>> >  -- cannot convert node_t to string
>> Just a note: I have never seen this error on my side.
>
> graphviz is too old on that system. I've updated to 2.20 and it works fine.
Thanks, I will put a note into the message and try a version check in tg-patch.
Show 21 quoted lines
>
>> Yeah, sorry I hand edited the patch to use printf instead of echo -e.
>>
>> can you edit this line in tg-summary.sh:
>>
>> printf "\t\"%s\" -> \"%s\";\n" "$$name" "$dep"
>>
>> and change it to this (i.e. remove one '$' from '$$name'):
>>
>> printf "\t\"%s\" -> \"%s\";\n" "$name" "$dep"
>
> Did this, and it works now! (Cheeeers!)
>
> I've attach the output from the big repository (well, the ASCII output is
> not very useful, but the graphics obtained by tg graph --graphviz is). I
> don't have an immediate idea how this could be improved, other than by
> options to strip away a part of the dependencies.
>
> Is
>  tg graph <branch-name>
> expected to work? It results in:
Never tried ;-)
>
> mir@mir:otrs-git (master)> tg graph t/noris-followups
> 3e65695427cf1a15e8a8903e4b11f849045d6800
> ccomps: node "t/noris-followups" not found in graph G - ignored

ccomps decomposes a graph into its connected components. I.e. if you have topics that depends on master and some one next, you get two graphs. That itslef improves dramaticaly the graph output, because the two graphs will be printed separatly. The idea behind the [NAME] argument is to select only this graph which contains this topic.

Bert
Show 16 quoted lines
>
> (and no further output)
>
>
> Big thanks so far!
>
> Michael
>
> --
> noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
> Tel +49-911-9352-0 - Fax +49-911-9352-100
> http://www.noris.de - The IT-Outsourcing Company
>
> Vorstand: Ingo Kraupa (Vorsitzender), Joachim Astel, Hansjochen Klenk -
> Vorsitzender des Aufsichtsrats: Stefan Schnabel - AG Nürnberg HRB 17689
>
Previous: Michael Radziej
Message 5 of 5 in “tg-graph: print dependency graph like git log --graph”
  1. tg-graph: print dependency graph like git log --graphBert Wesarg, May 20, 2009
  2. Michael RadziejMay 20, 2009
  3. Bert WesargMay 20, 2009
  4. Michael RadziejMay 20, 2009
  5. Bert WesargMay 21, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.