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

Re: [PATCH] Add a test for issue#3870

From: Arwin Arni <arwin_at_collab.net>
Date: Thu, 05 May 2011 14:32:01 +0530

On Wednesday 04 May 2011 10:27 PM, Philip Martin wrote:
> Arwin Arni<arwin_at_collab.net> writes:
>
>> Index: subversion/tests/cmdline/svnsync_tests.py
>> ===================================================================
>> --- subversion/tests/cmdline/svnsync_tests.py (revision 1099373)
>> +++ subversion/tests/cmdline/svnsync_tests.py (working copy)
>> @@ -155,7 +155,8 @@
>>
>>
>> def setup_and_sync(sbox, dump_file_contents, subdir=None,
>> - bypass_prop_validation=False, source_prop_encoding=None):
>> + bypass_prop_validation=False, source_prop_encoding=None,
>> + is_src_ra_local=None, is_dest_ra_local=None):
>> """Create a repository for SBOX, load it with DUMP_FILE_CONTENTS, then create a mirror repository and sync it with SBOX. Return the mirror sandbox."""
>>
>> # Create the empty master repository.
>> @@ -179,13 +180,20 @@
>> svntest.actions.enable_revprop_changes(dest_sbox.repo_dir)
>>
>> repo_url = sbox.repo_url
>> + cwd = os.getcwd()
>> + if is_src_ra_local:
>> + repo_url = "file://" + os.path.join(cwd, sbox.repo_dir)
>> +
> I suspect that might not work on Windows, look at file_scheme_prefix in
> svntest/main.py and pathname2url. It would be better to somehow access
> the main.py code (via sandbox.py?).
>

I did some tests and it does work on Windows as well.

I've made the other corrections.. Here's a modified patch.

The test XFails even in r1099706.

Thanks and Regards,
Arwin Arni

Received on 2011-05-05 11:02:46 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.