[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: Mon, 27 Jul 2009 13:04:37 -0400

On Mon, Jul 27, 2009 at 11:15 AM, Michael Haggerty<mhagger_at_alum.mit.edu> wrote:
> James, thanks for testing this.  It would be trivial to add the
> EOL-fixing code to my patch, but first I want to understand it because I
> fear there is a deeper problem.
> After digging through more Subversion code I found that the handling of
> property values is strange (and not very consistent).  Even in the case
> of XML output, where I had expected the data to come out 1:1, SVN munges
> properties that start with "svn:" while they are being output.  I hadn't
> expected that.
> But even though SVN outputs '\r\n' on Windows, I still don't understand
> how the '\r\n' characters get through in the test suite.

This had me stumped for a while too.
C:>svn --version
svn, version 1.6.3 (r38063)
   compiled Jun 18 2009, 12:57:17

C:>svn proplist --verbose --xml svntest
<?xml version="1.0"?>

The '\r\n' sequences are being folded to '\n'. But then the XML
parser turns '&#13\n' into '\r\n' in the final output.

> Perhaps there is a cygwin issue or something.  James, what does
>    python -c 'import sys; print sys.platform'
> print on your computer?

It prints win32. I'm running windows python not cygwin python.

James Abbatiello
Received on 2009-07-27 19:27:58 CEST

This is an archived mail posted to the Subversion Dev mailing list.