Skip to contentSkip to conversation

tg-graph: print dependency graph like git log --graph

PATCH Superseded Bert Wesarg 4 participants 18 messages Jun 15, 2016 Kbuild

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tg-graph: print dependency graph like git log --graph

Finally, I have managed to work on an old idea: to display the dependency graph line-by-line on the console. The insiration comes from the git log --graph command, the implementation too. I have ported the graph.c file from the GIT project into the GVPR graph processing language from the graphviz package. Thats why I have Cc'ed Adam, the original author of the GIT graph API and I would like to thank him for it. But I must also apologize to him that I haven't gave him credit in this first patch (only here in the message). Which should be done, before accepting into the topgit.git.

Actually, this is still a proof-of-concept, because I'm uncertain wheather we need a new command for this or not.

As you can see from the tg graph options, there is many you can tweak. I think the dfs options gives compacter graphs for depending topics. Dfs gives compacter graphs for the reversed dependencies (i.e. master as first line) for me too. So dfs should probably the default.

Please try.

Thanks,
Bert

---
 .gitignore                 |    2 +
 Makefile                   |    1 +
 README                     |    6 +
 contrib/tg-completion.bash |   25 +
 share/graph.gvpr           | 1043 ++++++++++++++++++++++++++++++++++++++++++++
 tg-graph.sh                |   74 ++++
 tg-summary.sh              |   47 ++-
 7 files changed, 1189 insertions(+), 9 deletions(-)
.gitignore +2 -0
index eb56446..fcc7f95 100644
@@ -21,6 +21,8 @@
 /tg-import.txt
 /tg-remote
 /tg-remote.txt
+/tg-graph
+/tg-graph.txt
 /tg
 .*.swp
 
Makefile +1 -0
index 3ce39a5..0de1277 100644
@@ -38,6 +38,7 @@ install:: all
 	install $(hooks_out) "$(DESTDIR)$(hooksdir)"
 	install -d -m 755 "$(DESTDIR)$(sharedir)"
 	install -m 644 $(help_out) "$(DESTDIR)$(sharedir)"
+	install -m 644 share/graph.gvpr "$(DESTDIR)$(sharedir)"
 
 clean::
 	rm -f tg $(commands_out) $(hooks_out) $(help_out)
README +6 -0
index d2f095d..7965d70 100644
@@ -480,6 +480,12 @@ tg update
 
 	TODO: tg update -a for updating all topic branches
 
+tg graph
+~~~~~~~~
+	Prints the dependency graph like git log --graph to the console.
+
+	TODO: fan-in and fan-out graphs
+
 TODO: tg rename
 
 
contrib/tg-completion.bash +25 -0
index de8a7b5..5124928 100755
@@ -302,6 +302,30 @@ _tg_export ()
 	esac
 }
 
+_tg_graph ()
+{
+	local cur="${COMP_WORDS[COMP_CWORD]}"
+
+	case "$cur" in
+	-*)
+		__tgcomp "
+			--color
+			--no-color
+			--bfs
+			--dfs
+			--reverse
+			--no-reverse
+			--header
+			--no-header
+			--body
+			--no-body
+		"
+		;;
+	*)
+		__tgcomp "$(__tg_refs)"
+	esac
+}
+
 _tg_help ()
 {
 	local cur="${COMP_WORDS[COMP_CWORD]}"
@@ -444,6 +468,7 @@ _tg ()
 	delete)      _tg_delete ;;
 	depend)      _tg_depend ;;
 	export)      _tg_export ;;
+	graph)       _tg_graph ;;
 	help)        _tg_help ;;
 	import)      _tg_import ;;
 	info)        _tg_info ;;
share/graph.gvpr new file +1043 -0

1,043 lines not on this page · raw message

tg-graph.sh new file +74 -0

74 lines not on this page · raw message

tg-summary.sh +38 -9

82 lines not on this page · raw message

Signature · 1 line
tg: (9f685cd..) bw/graph (depends on: master)
#1 lore raw

Hi,

I'm really looking forward for a tool like this and tried your patch instantly, but I keep getting:

gvpr: "/usr/local/share/topgit/graph.gvpr", line 936: gg_nl_ret += graph_output_commit_line();<<<
-- cannot convert node_t to string
Error: <stdin>:16: syntax error near line 16
context: >>> \ <<< t"t/conflicts" -> "master";

I have no idea what graph.gvpr is trying. My repo is available at:

git://github.com/mradziej/topgit.git

Your patch is on t/tg-graph. I tried "tg graph" on this repo.

Any idea?

Cheers

Michael

Signature · 6 lines
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
#2 lore raw
Quoted 11 lines · Michael Radziej

Hi,

I'm really looking forward for a tool like this and tried your patch instantly, but I keep getting:

gvpr: "/usr/local/share/topgit/graph.gvpr", line 936: gg_nl_ret += graph_output_commit_line();<<<
 -- cannot convert node_t to string
Error: <stdin>:16: syntax error near line 16
context:  >>> \ <<< t"t/conflicts" -> "master";

Quoted 7 lines

I have no idea what graph.gvpr is trying. My repo is available at:

git://github.com/mradziej/topgit.git

Your patch is on t/tg-graph. I tried "tg graph" on this repo.

Any idea?

No, it works here. Which version of graphviz do you have?

Thanks,
Bert

Quoted 4 lines

Cheers

Michael

#3 lore raw
Quoted 1 line · Bert Wesarg

No, it works here. Which version of graphviz do you have?

I tried two versions on debian:

2.8-3+etch1 (debian etch)
2.20.2-3~bpo40+1 (debian etch-backports)

I also tried it on a different host running Ubuntu with 2.16-3ubuntu2

Which one did you use?

Michael

Signature · 6 lines
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
#4 lore raw
Quoted 6 lines · Michael Radziej
Quoted 1 line · Bert Wesarg

No, it works here. Which version of graphviz do you have?

I tried two versions on debian:

Quoted 7 lines

2.8-3+etch1 (debian etch)
2.20.2-3~bpo40+1 (debian etch-backports)

I also tried it on a different host running Ubuntu with 2.16-3ubuntu2

Which one did you use?

The 2.20.2 one.

And you see the error with all 3?

Can you send the output from 'tg summary --graphviz' too?

Bert

Quoted 2 lines

Michael

#5 lore raw
In reply to Michael Radziej
Quoted 6 lines · Michael Radziej
Quoted 1 line · Bert Wesarg

No, it works here. Which version of graphviz do you have?

I tried two versions on debian:

Quoted 7 lines

2.8-3+etch1 (debian etch)
2.20.2-3~bpo40+1 (debian etch-backports)

I also tried it on a different host running Ubuntu with 2.16-3ubuntu2

Which one did you use?

The 2.20.2 one.

And you see the error with all 3?

Can you send the output from 'tg summary --graphviz' too?

Bert

Quoted 2 lines

Michael

#6 lore raw
Quoted 1 line · Bert Wesarg

And you see the error with all 3?

Yes

Quoted 2 lines

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";
}

Michael

Signature · 6 lines
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
#7 lore raw
Quoted 23 lines · Michael Radziej
Quoted 1 line · Bert Wesarg

And you see the error with all 3?

Yes

Quoted 2 lines

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"
       ];

Quoted 4 lines

\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

Bert

Quoted 2 lines

Michael

#8 lore raw
Quoted 24 lines · Bert Wesarg
Quoted 23 lines · Michael Radziej
Quoted 1 line · Bert Wesarg

And you see the error with all 3?

Yes

Quoted 2 lines

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"
       ];

Quoted 8 lines
Quoted 4 lines

\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?

Michael

Signature · 6 lines
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
#9 lore raw
Quoted 42 lines · Michael Radziej
Quoted 24 lines · Bert Wesarg
Quoted 23 lines · Michael Radziej
Quoted 1 line · Bert Wesarg

And you see the error with all 3?

Yes

Quoted 2 lines

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"
       ];

Quoted 8 lines
Quoted 4 lines

\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
|/
Quoted 6 lines

* 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

Quoted 2 lines

Michael

#10 lore raw
Quoted 6 lines · Bert Wesarg

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.

Cool. If I had any knowledge of graphviz I'd really like to help out :-(

I see another issue. On a quite complicated repository, I did the "tg summary --graphviz ... edit ... graphviz ..." dance, and there I get the following output:

mir@mir:otrs-git$ cat /tmp/graph | gvpr -f ~/src/topgit/share/graph.gvpr
gvpr: "/home/mir/src/topgit/share/graph.gvpr", line 936: gg_nl_ret +=
graph_output_commit_line();<<<
 -- cannot convert node_t to string

I have attached /tmp/graph (the output of tg summary --graphviz), I can't find anything that would stick out. I have to prepare this particular project a bit before I could push it out to git hub (removing configuration part with not-so-public content), do you need it at all?

I'm going to be away from mail for a few hours.

Thanks for your efforts!

Michael

Signature · 6 lines
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

# 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/AgentLinkObject-permissions" -> "patchbase";
"t/AgentTicketForward-quoting" -> "patchbase";
"t/FilterTextTicket" -> "patchbase";
"t/TicketCreate-with-TimeStamp" -> "patchbase";
"t/acl-notowner" -> "patchbase";
"t/add-customer-id-checking" -> "patchbase";
"t/agent-email-in-forward-sender" -> "patchbase"; "t/agent-name-in-sender+noris-followups" -> "t/agent-name-in-sender-v2"; "t/agent-name-in-sender+noris-followups" -> "t/noris-followups"; "t/agent-name-in-sender-v2" -> "patchbase";
"t/agent-notification-from" -> "t/mail-outgoing-envelope-sender"; "t/auth-http-with-ldap" -> "patchbase";
"t/auth-ldap-with-UserSyncLDAPRoles" -> "patchbase"; "t/auto-responses-to-envelope-sender" -> "patchbase"; "t/backport-references-headers" -> "patchbase"; "t/backport-references-headers-conflicts" -> "t/backport-references-headers"; "t/backport-references-headers-conflicts" -> "t/TicketCreate-with-TimeStamp"; "t/backport-references-headers-conflicts" -> "t/escalate-on-freetime"; "t/backport-references-headers-conflicts" -> "t/agent-notification-from"; "t/backport-references-headers-conflicts" -> "t/agent-email-in-forward-sender"; "t/backport-references-headers-conflicts" -> "t/noris-ticket-notowner"; "t/backport-references-headers-conflicts" -> "t/noris-self-ticket+noris-followups"; "t/backport-references-headers-conflicts" -> "t/internal-reply-without-envelope-sender-address"; "t/backport-references-headers-conflicts" -> "t/agent-name-in-sender+noris-followups"; "t/backport-references-headers-conflicts" -> "t/references-headers-for-internal-reply"; "t/backport-references-headers-conflicts" -> "t/bare-localparts+http-customer-backend"; "t/bare-localparts" -> "patchbase";
"t/bare-localparts+http-customer-backend" -> "t/bare-localparts"; "t/bare-localparts+http-customer-backend" -> "t/http-customer-backend"; "t/canned-response-format" -> "patchbase";
"t/clean-subject" -> "patchbase";
"t/clean-subject+ticket-after-subject" -> "t/clean-subject"; "t/clean-subject+ticket-after-subject" -> "t/ticket-after-subject"; "t/codefix-AgentTicketQueue" -> "patchbase";
"t/compose-if-without-to" -> "patchbase"; "t/compose-without-envelope-sender-address" -> "t/mail-outgoing-envelope-sender"; "t/configurable-max-length-in-templates" -> "patchbase"; "t/count-available-tickets" -> "patchbase";
"t/create-ticket-with-tn" -> "t/internal-reply";
"t/db-ticket-number" -> "patchbase";
"t/debian-apache" -> "patchbase";
"t/debian-backup" -> "patchbase";
"t/debian-cron" -> "patchbase";
"t/debian-misc-upstream" -> "patchbase";
"t/debian-noris" -> "t/debian-org";
"t/debian-opt" -> "patchbase";
"t/debian-org" -> "patchbase";
"t/debian-postmaster" -> "patchbase";
"t/default-ticket-type" -> "patchbase";
"t/escalate-on-freetime" -> "patchbase";
"t/escalation-search" -> "patchbase";
"t/event-stateupdate-with-previous-state" -> "patchbase";
"t/favicon" -> "patchbase";
"t/favicon+noris-agent-login" -> "t/favicon";
"t/favicon+noris-agent-login" -> "t/noris-agent-login"; "t/favicon+noris-customer-interface" -> "t/favicon"; "t/favicon+noris-customer-interface" -> "t/noris-customer-interface"; "t/favicon+noris-customer-interface+noris-agent-login" -> "t/favicon"; "t/favicon+noris-customer-interface+noris-agent-login" -> "t/noris-customer-interface"; "t/favicon+noris-customer-interface+noris-agent-login" -> "t/noris-agent-login"; "t/fix-AgentTicketZoom-HighlightColor" -> "patchbase"; "t/fix-CustomerAge-spaces" -> "patchbase";
"t/fix-Layout-CheckMimeType" -> "patchbase";
"t/fix-download-contenttype" -> "patchbase";
"t/fix-encode-convert" -> "patchbase";
"t/fix-new-messages" -> "patchbase";
"t/fix-nostates-sql" -> "patchbase";
"t/fix-search-index" -> "patchbase";
"t/fix-ticket-search" -> "patchbase";
"t/fix-ticketfreetime-with-attachments" -> "t/internal-reply"; "t/forward-as-rfc822" -> "patchbase";
"t/forward-template" -> "patchbase";
"t/freetext-fields-size" -> "patchbase";
"t/http-customer-backend" -> "patchbase"; "t/http-customer-backend+t/agent-name-in-sender-v2" -> "t/http-customer-backend"; "t/http-customer-backend+t/agent-name-in-sender-v2" -> "t/agent-name-in-sender-v2"; "t/http-customer-backend-with-ticket-map" -> "t/http-customer-backend"; "t/internal-reply" -> "t/noris-followups"; "t/internal-reply-without-envelope-sender-address" -> "t/internal-reply"; "t/keep-pending-time" -> "patchbase";
"t/keep-pending-time" -> "t/internal-reply";
"t/links-to-closed-tickets" -> "patchbase";
"t/longer-freetext-fields" -> "patchbase";
"t/longer-queue-names" -> "t/templates-with-config-maxlength"; "t/mail-outgoing-envelope-sender" -> "patchbase";
"t/max-title-length" -> "patchbase";
"t/more-article-actions" -> "patchbase";
"t/more-params-in-AgentTicketEmail" -> "patchbase"; "t/more-params-in-AgentTicketPhone" -> "t/internal-reply";
"t/move-as-nonowner" -> "patchbase";
"t/no-accounted-time" -> "patchbase";
"t/no-autoreply-to-agent" -> "patchbase"; "t/no-autoreply-to-agent+http-customer-backend" -> "t/no-autoreply-to-agent"; "t/no-autoreply-to-agent+http-customer-backend" -> "t/http-customer-backend"; "t/no-cc-with-auto-response" -> "patchbase";
"t/no-redirect-on-close" -> "patchbase";
"t/no-redirect-on-close" -> "t/internal-reply";
"t/no-redirect-on-close" -> "t/parking-states";
"t/no-redirect-on-close" -> "t/backport-references-headers"; "t/no-search-on-link" -> "patchbase";
"t/noris-FilterTextWiki" -> "patchbase";
"t/noris-add-work-time" -> "patchbase";
"t/noris-agent-login" -> "patchbase";
"t/noris-attributes" -> "patchbase";
"t/noris-config" -> "patchbase";
"t/noris-confitems" -> "patchbase";
"t/noris-customer-interface" -> "patchbase";
"t/noris-docushare" -> "patchbase";
"t/noris-followups" -> "t/more-article-actions";
"t/noris-followups" -> "t/mail-outgoing-envelope-sender";
"t/noris-followups" -> "t/more-params-in-AgentTicketEmail"; "t/noris-meine-tickets" -> "t/parking-states";
"t/noris-rt-followups" -> "t/noris-followups";
"t/noris-self-ticket" -> "patchbase";
"t/noris-self-ticket+noris-followups" -> "t/noris-self-ticket"; "t/noris-self-ticket+noris-followups" -> "t/noris-rt-followups";
"t/noris-take" -> "patchbase";
"t/noris-ticket-notowner" -> "t/internal-reply";
"t/noris-translation" -> "patchbase";
"t/noris-treeview" -> "patchbase";
"t/parking-states" -> "patchbase";
"t/queue-by-envelope-recipient" -> "patchbase";
"t/rcs-keywords" -> "patchbase";
"t/recipients-for-replies" -> "t/internal-reply"; "t/references-headers-for-internal-reply" -> "t/internal-reply"; "t/show-last-article" -> "patchbase";
"t/suppress-no-caching-headers" -> "t/internal-reply"; "t/suppress-no-caching-headers" -> "t/parking-states"; "t/suppress-no-caching-headers" -> "t/noris-rt-followups"; "t/templates-with-config-maxlength" -> "patchbase";
"t/testing" -> "patchbase";
"t/testing" -> "t/forward-template";
"t/testing" -> "t/AgentLinkObject-permissions";
"t/testing" -> "t/acl-notowner";
"t/testing" -> "t/debian-apache";
"t/testing" -> "t/debian-backup";
"t/testing" -> "t/debian-cron";
"t/testing" -> "t/debian-misc-upstream";
"t/testing" -> "t/debian-noris";
"t/testing" -> "t/debian-opt";
"t/testing" -> "t/debian-postmaster";
"t/testing" -> "t/default-ticket-type";
"t/testing" -> "t/escalation-search";
"t/testing" -> "t/event-stateupdate-with-previous-state";
"t/testing" -> "t/fix-download-contenttype";
"t/testing" -> "t/fix-encode-convert";
"t/testing" -> "t/fix-nostates-sql";
"t/testing" -> "t/fix-ticket-search";
"t/testing" -> "t/forward-as-rfc822";
"t/testing" -> "t/http-customer-backend+t/agent-name-in-sender-v2";
"t/testing" -> "t/links-to-closed-tickets";
"t/testing" -> "t/move-as-nonowner";
"t/testing" -> "t/no-search-on-link";
"t/testing" -> "t/noris-config";
"t/testing" -> "t/noris-confitems";
"t/testing" -> "t/noris-docushare";
"t/testing" -> "t/noris-meine-tickets";
"t/testing" -> "t/noris-treeview";
"t/testing" -> "t/show-last-article";
"t/testing" -> "t/ticketmailbox-by-queue";
"t/testing" -> "t/workaround-mime-words";
"t/testing" -> "t/noris-take";
"t/testing" -> "t/noris-translation";
"t/testing" -> "t/noris-attributes";
"t/testing" -> "t/auto-responses-to-envelope-sender";
"t/testing" -> "t/ticket-in-localpart";
"t/testing" -> "t/no-cc-with-auto-response";
"t/testing" -> "t/auth-http-with-ldap";
"t/testing" -> "t/backport-references-headers-conflicts";
"t/testing" -> "t/compose-without-envelope-sender-address";
"t/testing" -> "t/noris-add-work-time";
"t/testing" -> "t/no-redirect-on-close";
"t/testing" -> "t/rcs-keywords";
"t/testing" -> "t/ticket-subject-hook+db-ticket-number";
"t/testing" -> "t/fix-search-index";
"t/testing" -> "t/queue-by-envelope-recipient";
"t/testing" -> "t/compose-if-without-to";
"t/testing" -> "t/no-accounted-time";
"t/testing" -> "t/longer-freetext-fields";
"t/testing" -> "t/add-customer-id-checking";
"t/testing" -> "t/auth-ldap-with-UserSyncLDAPRoles";
"t/testing" -> "t/canned-response-format";
"t/testing" -> "t/clean-subject+ticket-after-subject";
"t/testing" -> "t/more-params-in-AgentTicketPhone";
"t/testing" -> "t/fix-new-messages";
"t/testing" -> "t/keep-pending-time";
"t/testing" -> "t/create-ticket-with-tn";
"t/testing" -> "t/FilterTextTicket";
"t/testing" -> "t/noris-FilterTextWiki";
"t/testing" -> "t/suppress-no-caching-headers";
"t/testing" -> "t/bare-localparts";
"t/testing" -> "t/bare-localparts+http-customer-backend";
"t/testing" -> "t/count-available-tickets";
"t/testing" -> "t/recipients-for-replies";
"t/testing" -> "t/no-autoreply-to-agent";
"t/testing" -> "t/no-autoreply-to-agent+http-customer-backend";
"t/testing" -> "t/http-customer-backend-with-ticket-map";
"t/testing" -> "t/fix-CustomerAge-spaces";
"t/testing" -> "t/freetext-fields-size";
"t/testing" -> "t/fix-ticketfreetime-with-attachments";
"t/testing" -> "t/configurable-max-length-in-templates";
"t/testing" -> "t/max-title-length";
"t/testing" -> "t/favicon+noris-customer-interface+noris-agent-login"; "t/testing" -> "t/AgentTicketForward-quoting";
"t/testing" -> "t/fix-AgentTicketZoom-HighlightColor";
"t/testing" -> "t/ticketfreetext-per-queue";
"t/testing" -> "t/fix-Layout-CheckMimeType";
"t/testing" -> "t/longer-queue-names";
"t/ticket-after-subject" -> "patchbase";
"t/ticket-hook-subject" -> "patchbase";
"t/ticket-in-localpart" -> "patchbase";
"t/ticket-subject-hook+db-ticket-number" -> "t/ticket-hook-subject"; "t/ticket-subject-hook+db-ticket-number" -> "t/db-ticket-number"; "t/ticket-subject-hook+db-ticket-number" -> "t/clean-subject"; "t/ticketfreetext-per-queue" -> "t/backport-references-headers-conflicts"; "t/ticketfreetext-per-queue" -> "t/parking-states";
"t/ticketmailbox-by-queue" -> "t/parking-states";
"t/ticketmailbox-by-queue" -> "t/codefix-AgentTicketQueue"; "t/ticketmailbox-by-queue" -> "t/ticketmailbox-sort-array"; "t/ticketmailbox-sort-array" -> "patchbase";
"t/workaround-mime-words" -> "patchbase";
}

#11 lore raw
Quoted 11 lines · Michael Radziej
Quoted 6 lines · Bert Wesarg

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.

Cool. If I had any knowledge of graphviz I'd really like to help out :-(

Quoted 8 lines

I see another issue. On a quite complicated repository, I did the "tg summary --graphviz ... edit ...  graphviz ..." dance, and there I get the following output:

mir@mir:otrs-git$ cat /tmp/graph | gvpr -f ~/src/topgit/share/graph.gvpr
gvpr: "/home/mir/src/topgit/share/graph.gvpr", line 936: gg_nl_ret +=
graph_output_commit_line();<<<
 -- cannot convert node_t to string

Ok, still two unrelated problems.

Quoted 5 lines

I have attached /tmp/graph (the output of tg summary --graphviz), I can't find anything that would stick out. I have to prepare this particular project a bit before I could push it out to git hub (removing configuration part with not-so-public content), do you need it at all?

I think the graphviz output should suffice. thanks.

Quoted 7 lines

I'm going to be away from mail for a few hours.

Thanks for your efforts!

Michael

#12 lore raw
Quoted 10 lines · Bert Wesarg
Quoted 8 lines · Michael Radziej

I see another issue. On a quite complicated repository, I did the "tg summary --graphviz ... edit ...  graphviz ..." dance, and there I get the following output:

mir@mir:otrs-git$ cat /tmp/graph | gvpr -f ~/src/topgit/share/graph.gvpr
gvpr: "/home/mir/src/topgit/share/graph.gvpr", line 936: gg_nl_ret +=
graph_output_commit_line();<<<
 -- cannot convert node_t to string

Ok, still two unrelated problems.

And still I can't reproduce it here :(

Bert

#14 lore raw
In reply to Bert Wesarg

also sprach Bert Wesarg <[email protected]> [2009.05.19.0744 +0200]:

tg-summary.sh git for-each-ref refs/top-bases | · line 77

Quoted 9 lines
tg-summary.sh +5 -0
@@ -62,12 +70,33 @@ git for-each-ref refs/top-bases |
 			continue
 		fi
 		if [ -n "$graphviz" ]; then
+
+			if [ -n "$graphviz_verbose" ]; then
+				type="header"
+				lines=0
+				echo "\t\"$name\" ["

You need to pass -e to echo for it to honour escape sequences. That should solve Michael's problem. Alternatively, just use ^I directly.

Signature · 7 lines
 .''`.   martin f. krafft <[email protected]>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"in just seven days, i can make you a man!"
                                      -- the rocky horror picture show
#15 lore raw
Quoted 13 lines · martin f krafft

also sprach Bert Wesarg <[email protected]> [2009.05.19.0744 +0200]:

Quoted 9 lines
(quoted diff) +0 -0
@@ -62,12 +70,33 @@ git for-each-ref refs/top-bases |

                      continue
              fi
              if [ -n "$graphviz" ]; then
+
+                     if [ -n "$graphviz_verbose" ]; then
+                             type="header"
+                             lines=0
+                             echo "\t\"$name\" ["

You need to pass -e to echo for it to honour escape sequences. That should solve Michael's problem. Alternatively, just use ^I directly.

Correct, thanks. Looks like a feature from bash or dash to honor escape sequences without -e'

Bert

#13 lore raw
In reply to Bert Wesarg
Quoted 6 lines · Bert Wesarg
Quoted 5 lines · Bert Wesarg
Quoted 4 lines · Michael Radziej

I see another issue. On a quite complicated repository, I did the "tg summary --graphviz ... edit ...  graphviz ..." dance, and there I get the following output:

Quoted 6 lines
Quoted 5 lines
Quoted 4 lines
mir@mir:otrs-git$ cat /tmp/graph | gvpr -f ~/src/topgit/share/graph.gvpr
gvpr: "/home/mir/src/topgit/share/graph.gvpr", line 936: gg_nl_ret +=
graph_output_commit_line();<<<
 -- cannot convert node_t to string

Ok, still two unrelated problems.

And still I can't reproduce it here :(

I found a missing rename which causes random segfaults.

Here the diff:

share/graph.gvpr +1 -1
@@ -523,7 +523,7 @@ BEGIN {
                  * print the branch lines as "|".
                  */
                 if (gg_prev_state == GRAPH_POST_MERGE &&
-                    gg_prev_commit_index < gg_opcl_i)
+                    gg_prev_n_index < gg_opcl_i)
                     gg_opcl_sb += gg_write_column(gg_columns[gg_opcl_i], "\\");
                 else
                     gg_opcl_sb += gg_write_column(gg_columns[gg_opcl_i], "|");

patch tomorrow

Bert

#16 lore raw
In reply to Bert Wesarg

Hi Bert,

Quoted 14 lines · Bert Wesarg
Quoted 13 lines · martin f krafft

also sprach Bert Wesarg <[email protected]> [2009.05.19.0744 +0200]:

Quoted 9 lines
(quoted diff) +0 -0
@@ -62,12 +70,33 @@ git for-each-ref refs/top-bases |

                      continue
              fi
              if [ -n "$graphviz" ]; then
+
+                     if [ -n "$graphviz_verbose" ]; then
+                             type="header"
+                             lines=0
+                             echo "\t\"$name\" ["

You need to pass -e to echo for it to honour escape sequences. That should solve Michael's problem. Alternatively, just use ^I directly.

Quoted 2 lines

Correct, thanks. Looks like a feature from bash or dash to honor escape sequences without -e'

quoting
http://www.gnu.org/software/hello/manual/autoconf/Limitations-of-Builtins.html#Limitations-of-Builtins:

It is not possible to use `echo' portably unless both options and escape sequences are omitted.

... use printf instead.

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                              | Uwe Kleine-König            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |
#17 lore raw

2009/5/19 Uwe Kleine-König <[email protected]>:

Quoted 19 lines

Hi Bert,

Quoted 14 lines · Bert Wesarg
Quoted 13 lines · martin f krafft

also sprach Bert Wesarg <[email protected]> [2009.05.19.0744 +0200]:

Quoted 9 lines
(quoted diff) +0 -0
@@ -62,12 +70,33 @@ git for-each-ref refs/top-bases |

                      continue
              fi
              if [ -n "$graphviz" ]; then
+
+                     if [ -n "$graphviz_verbose" ]; then
+                             type="header"
+                             lines=0
+                             echo "\t\"$name\" ["

You need to pass -e to echo for it to honour escape sequences. That should solve Michael's problem. Alternatively, just use ^I directly.

Quoted 2 lines

Correct, thanks. Looks like a feature from bash or dash to honor escape sequences without -e'

Quoted 7 lines

quoting
http://www.gnu.org/software/hello/manual/autoconf/Limitations-of-Builtins.html#Limitations-of-Builtins:

       It is not possible to use `echo' portably unless both options and escape sequences are omitted.

... use printf instead.

Thank you for this valuable link, Will switch to printf.

Bert

Quoted 3 lines

Best regards
Uwe