--- oslo-series-final/0020-guilt-graph-Handle-patch-names-containing-quotes.patch +++ oslo-series-v2/v2-0020-guilt-graph-Handle-patch-names-containing-quotes.patch @@ -1,14 +1,16 @@ -From 7a5ead7eeb4b720b9541885be54d156fbabeb981 Mon Sep 17 00:00:00 2001 +From a2e0a542d16c25de0c6eafba16dde8e3d1991031 Mon Sep 17 00:00:00 2001 From: Per Cederqvist -Date: Wed, 19 Mar 2014 21:47:38 +0100 -Subject: [GUILT 20/28] "guilt graph": Handle patch names containing quotes. +Date: Tue, 13 May 2014 21:39:02 +0200 +Subject: [GUILT v2 20/29] "guilt graph": Handle patch names containing quotes. To: Jeff Sipek Cc: git@vger.kernel.org -Quote quotes with a backslash in the "guitl graph" output. Otherwise, +Quote quotes with a backslash in the "guilt graph" output. Otherwise, the "dot" file could contain syntax errors. Added a test case. + +Signed-off-by: Per Cederqvist --- guilt-graph | 2 ++ regression/t-033.out | 22 ++++++++++++++++++++++ diff --git a/guilt-graph b/guilt-graph index 575f03b..24ab83b 100755 --- a/guilt-graph +++ b/guilt-graph - @@ -58,6 +58,8 @@ while [ "$current" != "$base" ]; do + @@ -57,6 +57,8 @@ while [ "$current" != "$base" ]; do }"` [ -z "$pname" ] && pname="?" - + pname="`printf \"%s\" $pname|sed 's/\"/\\\\\"/g'`" + + pname="`printf \"%s\" \"$pname\" | sed 's/\"/\\\\\"/g'`" + disp "# checking rev $current" disp " \"$current\" [label=\"$pname\"]"