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

Re: svn info --recursive isn't reporting tree-conflict-only nodes

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 3 May 2011 18:46:50 +0300

Julian Foad wrote on Tue, May 03, 2011 at 14:31:47 +0100:
> + # Check recursive info.
> + # ### This is currently dependent on ordering of the dict entries.
> + expected_infos = [{ 'Path' : r'.*[/\\]G' }]
> for fname, action, reason in scenarios:
> + expected_str = ".*local %s, incoming %s.*" % (reason, action)
> + expected_infos.append({ 'Name' : fname,
> + 'Tree conflict' : expected_str })

I guess you want re.escape() here, at least for fname. (Formally you
need it for expected_str too, unless you rely on knowing that REASON and
ACTION don't contain regex metachars.)
Received on 2011-05-03 17:47:31 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.