[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1654810 - /subversion/trunk/subversion/tests/cmdline/prop_tests.py

From: Ivan Zhakov <ivan_at_visualsvn.com>
Date: Mon, 9 Feb 2015 15:15:55 +0300

On 26 January 2015 at 17:17, <rhuijben_at_apache.org> wrote:
> Author: rhuijben
> Date: Mon Jan 26 14:17:25 2015
> New Revision: 1654810
>
> URL: http://svn.apache.org/r1654810
> Log:
> Following up on r1654794, add a related test that verifies the author value
> retrieved with the stat ra functions.
>
> * subversion/tests/cmdline/prop_tests.py
> (xml_unsafe_author2): New test.
> (test_list): Add xml_unsafe_author2.
>
> Modified:
> subversion/trunk/subversion/tests/cmdline/prop_tests.py
>
> Modified: subversion/trunk/subversion/tests/cmdline/prop_tests.py
> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/prop_tests.py?rev=1654810&r1=1654809&r2=1654810&view=diff
> ==============================================================================
> --- subversion/trunk/subversion/tests/cmdline/prop_tests.py (original)
> +++ subversion/trunk/subversion/tests/cmdline/prop_tests.py Mon Jan 26 14:17:25 2015
> @@ -2669,6 +2669,46 @@ def xml_unsafe_author(sbox):
> 'proplist', '--revprop', '-r', '1', '-v',
> wc_dir)
>
> +@Issue(4415)
> +def xml_unsafe_author2(sbox):
> + "svn:author with XML unsafe chars 2"
> +
> + sbox.build(create_wc = False)
> + repo_url = sbox.repo_url
> +
> + svntest.actions.enable_revprop_changes(sbox.repo_dir)
> +
> + # client sends svn:author (via PROPPATCH for DAV)
> + svntest.actions.run_and_verify_svn(None, None, [],
> + 'propset', '--revprop', '-r', '1',
> + 'svn:author', 'foo\bbar', repo_url)
> +
> + # Ensure a stable date
> + svntest.actions.run_and_verify_svn(None, None, [],
> + 'propset', '--revprop', '-r', '1',
> + 'svn:date', '2000-01-01T12:00:00.0Z',
> + repo_url)
> +
> + if svntest.main.is_ra_type_dav():
> + # This receives the filtered author (but that is better than an Xml fail)
> + expected_author = 'foobar'
> + else:
> + expected_author = 'foo\bbar'
> +
> + expected_output = svntest.verify.UnorderedOutput([
> + ' 1 %-8s Jan 01 2000 ./\n' % expected_author,
> + ' 1 %-8s Jan 01 2000 A/\n' % expected_author,
> + ' 1 %-8s 25 Jan 01 2000 iota\n' % expected_author
> + ])
Hi Bert,

This test is failing on system with non-US default locale, because
'svn ls -v' prints date in locale depended format.

-- 
Ivan Zhakov
Received on 2015-02-09 13:17:29 CET

This is an archived mail posted to the Subversion Dev mailing list.