Re: [TopGit PATCH] tg-graph: print dependency graph like git log --graph
- From
Bert Wesarg <bert.wesarg@googlemail.com>
- Date
- May 19, 2009, 13:51 UTC
- Message-ID
- <36ca99e90905190651tfed03f9ha87ca32b3aee2599@mail.gmail.com>
- In-Reply-To
- <20090519133947.GE28702@noris.de>
On Tue, May 19, 2009 at 15:39, Michael Radziej <mir@noris.de> wrote:
Show 48 quoted lines
> On Tue, May 19, Bert Wesarg wrote:
>
>> On Tue, May 19, 2009 at 15:10, Michael Radziej <mir@noris.de> wrote:
>> > On Tue, May 19, Bert Wesarg wrote:
>> >> And you see the error with all 3?
>> >
>> > Yes
>> >
>> >>
>> >> Can you send the output from 'tg summary --graphviz' too?
>> >
>> > # GraphViz output; pipe to:
>> > # | dot -Tpng -o <ouput>
>> > # or
>> > # | dot -Txlib
>> >
>> > digraph G {
>> >
>> > graph [
>> > rankdir = "TB"
>> > label="TopGit Layout\n\n\n"
>> > fontsize = 14
>> > labelloc=top
>> > pad = "0.5,0.5"
>> > ];
>> >
>> > \t"t/conflicts" -> "master";
>> > \t"t/python" -> "master";
>> > \t"t/tg-graph" -> "master";
>> > }
>> can you remove the '\t' and pipe the resulting file into this command
>> inside your topgit work dir:
>>
>> cat "$file" | gvpr -f share/graph.gvpr
>
> Works:
>
> * t/conflicts
> | * t/python
> |/
> | * t/tg-graph
> |/
> * master
>
> (Wow, I had no idea graphviz can produce ASCII art!)
>
> Where's the '\t' from? Is it a result of the "t/" prefix I used for the
> topic branches?No its just a formating tab to make the output of summary --graphviz nicer ;-)
As martin suggests, you can remove any "\t" from the 'echo' lines in tg-summary or add a '-e' option to it.
I will probably post tomorrow an updated patch.
Bert
> > Michael