Hi devs, Here is another (trivial) patch for "svn blame", which was also discussed in [1].
[[[ Let "svn blame" truncate long author names to keep the column width fixed to 10 characters. * subversion/svn/blame-cmd.c (print_line_info): Change the printf format to truncate author names to 10 characters. ]]] Cheers, -- Johan [1] http://svn.haxx.se/dev/archive-2010-04/0463.shtml
Index: subversion/svn/blame-cmd.c =================================================================== --- subversion/svn/blame-cmd.c (revision 956107) +++ subversion/svn/blame-cmd.c (working copy) @@ -158,7 +158,7 @@ time_stdout = " -"; } - SVN_ERR(svn_stream_printf(out, pool, "%s %10s %s ", rev_str, + SVN_ERR(svn_stream_printf(out, pool, "%s %10.10s %s ", rev_str, author ? author : " -", time_stdout)); @@ -167,7 +167,7 @@ } else { - return svn_stream_printf(out, pool, "%s %10s ", rev_str, + return svn_stream_printf(out, pool, "%s %10.10s ", rev_str, author ? author : " -"); }