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

Re: svn commit: r1143731 - /subversion/trunk/subversion/tests/cmdline/info_tests.py

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 7 Jul 2011 19:25:15 +0300

rhuijben_at_apache.org wrote on Thu, Jul 07, 2011 at 09:44:12 -0000:
> Author: rhuijben
> Date: Thu Jul 7 09:44:12 2011
> New Revision: 1143731
>
> URL: http://svn.apache.org/viewvc?rev=1143731&view=rev
> Log:
> Add testcase for issue #3787.
>
> * subversion/tests/cmdline/info_tests.py
> (info_show_exclude): New testcase.
> (test_list): Add info_show_exclude.
>
> Patch by: Noorul Islam K M <noorul{_AT_}collab.net>
> (extended by me)
>
> Modified:
> subversion/trunk/subversion/tests/cmdline/info_tests.py
>
> Modified: subversion/trunk/subversion/tests/cmdline/info_tests.py
> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/info_tests.py?rev=1143731&r1=1143730&r2=1143731&view=diff
> ==============================================================================
> --- subversion/trunk/subversion/tests/cmdline/info_tests.py (original)
> +++ subversion/trunk/subversion/tests/cmdline/info_tests.py Thu Jul 7 09:44:12 2011
> @@ -412,6 +412,77 @@ def info_repos_root_url(sbox):
> svntest.actions.run_and_verify_info(expected_info, sbox.repo_url,
> '--depth', 'files')
>
> +@Issue(3787)
> +def info_show_exclude(sbox):
> + "tests 'info --depth' variants on excluded node"
> +
> + sbox.build()
> + wc_dir = sbox.wc_dir
> +
> + A_path = os.path.join(wc_dir, 'A')
> + iota = os.path.join(wc_dir, 'iota')
> + svntest.main.run_svn(None, 'up', '--set-depth', 'exclude', A_path)
> + wc_uuid = svntest.actions.get_wc_uuid(wc_dir)
> +
> + expected_info = []
> + expected_info = [{
> + 'Path' : '.',

You probably want re.escape('.') or re.escape(wc_dir) here.

And also in the other cases. I wonder if I should make the
run_and_verify_info() helper use re.match() instead of re.search()...

> + 'Repository Root' : sbox.repo_url,
> + 'Repository UUID' : wc_uuid,
> + }]
> +
> + svntest.actions.run_and_verify_info(expected_info, '--depth', 'empty',
> + wc_dir)
Received on 2011-07-07 18:26:03 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.