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

Re: [PATCH] Change test suite to read file properties in XML format [was: Re: cvs2svn test suite breakage caused by svn changes]

From: James Abbatiello <abbeyj_at_gmail.com>
Date: Sun, 26 Jul 2009 17:11:27 -0400

On Sun, Jul 26, 2009 at 12:02 PM, Michael Haggerty<mhagger_at_alum.mit.edu> wrote:
> The only difference I would expect compared to the old code is that the
> old code handled end-of-lines unusually, which I presume was a
> side-effect of having to parse the text output of "svn proplist".  I
> think that what the new code does is the "right thing", but *if* there
> are problems they are likely to appear under Windows, which I don't have
> available for testing.

On Windows the old code produces:
>>> svntest.tree.get_props(['svntest'])
{'svntest': {'svn:ignore': '*.pyc\n*.o\n*~\n.*~\n\n'}}

And the new version produces:
>>> svntest.tree.get_props(['svntest'])
{u'svntest': {u'svn:ignore': u'*.pyc\r\n*.o\r\n*~\r\n.*~\r\n\r\n'}}

So it looks like some line-ending manipulation is still needed unless
the consumers are prepared to handle both forms.

-- 
James Abbatiello
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2375715
Received on 2009-07-27 18:31:21 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.