Author: danielsh Date: Sun Nov 13 01:55:31 2016 New Revision: 1769456 URL: http://svn.apache.org/viewvc?rev=1769456&view=rev Log: 'svn info --show-item': Don't print trailing whitespace after revision numbers that comprise 8 digits or less.
* subversion/svn/info-cmd.c (print_info_item_revision): As above. * subversion/tests/cmdline/info_tests.py (info_item_simple): Change the expectation from unanchored regexp match to string equality, to catch the above bug. Modified: subversion/trunk/subversion/svn/info-cmd.c subversion/trunk/subversion/tests/cmdline/info_tests.py Modified: subversion/trunk/subversion/svn/info-cmd.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/info-cmd.c?rev=1769456&r1=1769455&r2=1769456&view=diff ============================================================================== --- subversion/trunk/subversion/svn/info-cmd.c (original) +++ subversion/trunk/subversion/svn/info-cmd.c Sun Nov 13 01:55:31 2016 @@ -811,7 +811,7 @@ print_info_item_revision(svn_revnum_t re if (target_path) SVN_ERR(svn_cmdline_printf(pool, "%-10ld %s", rev, target_path)); else - SVN_ERR(svn_cmdline_printf(pool, "%-10ld", rev)); + SVN_ERR(svn_cmdline_printf(pool, "%ld", rev)); } else if (target_path) SVN_ERR(svn_cmdline_printf(pool, "%-10s %s", "", target_path)); Modified: subversion/trunk/subversion/tests/cmdline/info_tests.py URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/info_tests.py?rev=1769456&r1=1769455&r2=1769456&view=diff ============================================================================== --- subversion/trunk/subversion/tests/cmdline/info_tests.py (original) +++ subversion/trunk/subversion/tests/cmdline/info_tests.py Sun Nov 13 01:55:31 2016 @@ -641,7 +641,7 @@ def info_item_simple(sbox): sbox.build(read_only=True) svntest.actions.run_and_verify_svn( - '1', [], + ['1'], [], 'info', '--show-item=revision', '--no-newline', sbox.ospath(''))