Reducing the regular expression gets past this particular error.
err =~ %r{^svn: warning: W160013:} # file does not exist error
How specific do we want to make this test?
Thanks,
Craig
> On Jul 9, 2020, at 10:03 AM, Craig Russell <[email protected]> wrote:
>
> Hi Sebb,
>
> Maybe the regular expression is too strict or doesn't cover all the cases.
> The code expects not only to get an error but a very specific kind of error.
>
> # Need to check for unexpected errors; the error message does not
> include the full repo URL
> unless err =~
> %r{^svn: warning: W160013: Path '.+#{filename}' not found}
> throw RuntimeError.new("#{filename} already exists! #{err}")
>
> Could you tell a bit more about what you are checking for here?
>
> Thanks,
> Craig
>
>> On Jul 8, 2020, at 4:00 PM, Craig Russell <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> svn: warning: W160013: URL
>> 'https://svn.apache.org/repos/private/documents/emeritus-requests-received/clr.txt
>>
>> <https://svn.apache.org/repos/private/documents/emeritus-requests-received/clr.txt>'
>> non-existent in revision 98098\nsvn: E200009: Could not list all targets
>> because some targets don't exist\n
>
> Craig L Russell
> [email protected] <mailto:[email protected]>
>
Craig L Russell
[email protected]