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

Re: svn commit: rev 5279 - trunk/subversion/tests/clients/cmdline

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-03-11 19:51:38 CET

brane@tigris.org wrote:

>Author: brane
>Date: Tue Mar 11 11:59:25 2003
>New Revision: 5279
>
>Modified:
> trunk/subversion/tests/clients/cmdline/prop_tests.py
>Log:
>* prop_tests.py (strip_or_add_whitespace.set_prop): Send propval_file
>and propval_path to set_prop as default args.
>
>
>Modified: trunk/subversion/tests/clients/cmdline/prop_tests.py
>==============================================================================
>--- trunk/subversion/tests/clients/cmdline/prop_tests.py (original)
>+++ trunk/subversion/tests/clients/cmdline/prop_tests.py Tue Mar 11 11:59:25 2003
>@@ -756,12 +756,12 @@
> propval_path = os.path.join(wc_dir, 'propval.tmp')
> propval_file = open(propval_path, 'wb')
>
>- def set_prop(name, value, path):
>- propval_file.seek(0)
>- propval_file.truncate(0)
>- propval_file.write(value)
>- propval_file.flush()
>- svntest.main.run_svn(None, 'propset', '-F', propval_path, name, path)
>+ def set_prop(name, value, path, valf=propval_file, valp=propval_path):
>+ valf.seek(0)
>+ valf.truncate(0)
>+ valf.write(value)
>+ valf.flush()
>+ svntest.main.run_svn(None, 'propset', '-F', valp, name, path)
>
> # Leading and trailing whitespace should be stripped
> set_prop('svn:mime-type', ' text/html\n\n', iota_path)
>
>

I apologize for committing the testbreakage that this patch fixed. The
Python 2.2 on my box grokked the original code, but 2.1.3 doesn't. It
should all work now.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 11 19:52:27 2003

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.