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

Re: svn commit: rev 5522 - in trunk/subversion: libsvn_client tests/clients/cmdline

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2003-04-03 17:22:03 CEST

On Thu, Apr 03, 2003 at 04:54:37PM +0200, Robert Pluim wrote:
> Michael Wood writes:
> > On Thu, Apr 03, 2003 at 03:24:17PM +0200, Robert Pluim wrote:
> > > I thought the same initially, then wondered if that took into account
> > > lf vs crlf issues, so I played it safe ;-) (I don't have a windows
> > > machine to test on).
> >
> > hmmm... I would have expected the line ending characters to have been
> > stripped already, but I haven't looked at the code.
> >
>
> If I replace the regexp with:
>
> if 'svn: Filesystem has no item\n' == line:
>
> the test continues to work. If I use
>
> if 'svn: Filesystem has no item' == line:
>
> it fails, so the line ending is still there, however I don't know if
> python represents line endings the same on different platforms.

No, I'm pretty sure it would be '...\r\n' on Windows. Maybe Branko's
suggestion of an abstraction would help if it stripped the eol
characters.

-- 
Michael Wood <mwood@its.uct.ac.za>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 3 17:23:04 2003

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.