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

Re: [PATCH] svn command - ls - Multiple targets

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 14 Feb 2011 12:36:26 +0000

Stefan Sperling <stsp_at_elego.de> writes:

>> + alpha = os.path.join(wc_dir, 'A/B/E/alpha')
>> + beta = os.path.join(wc_dir, 'A/B/E/beta')
>
> I think you need this here instead:
> alpha = os.path.join(wc_dir, 'A', 'B', 'E', alpha')
> beta = os.path.join(wc_dir, 'A', 'B', 'E', 'beta')
>
> Otherwise you'll get something like this on Windows:
> C:\foo\bar\wc_dir\A/B/E/alpha
> C:\foo\bar\wc_dir\A/B/E/beta

Or:

    sbox.ospath('A/B/E/alpha')

>> + exit_code, output, error = svntest.main.run_svn(1, 'ls', alpha,
>> + non_existent_path, beta)
>> +
>> + # Verify error
>> + if not expected_err_re.match("".join(error)):
>> + raise svntest.Failure('Cat failed: expected error "%s", but received '
>> + '"%s"' % (expected_err, "".join(error)))

It should be possible to pass the regex into run_and_verify_svn.

-- 
Philip
Received on 2011-02-14 13:37:12 CET

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.