lgo@tigris.org wrote:
> Author: lgo
> Date: Tue Jun 20 11:06:49 2006
> New Revision: 20191
>
> Modified:
> trunk/subversion/tests/cmdline/import_tests.py
>
> Log:
> * Followup to r17321 : Add a new test to validate the import handles the
> eol style correctly, reported as issue 2433.
> Followup to r20179: make sure the import test also works on
> non-Windows platforms.
>
> * subversion/tests/cmdline/import_tests.py
> (import_eol_style): add definition of CRLF for all
> platforms and use it to validate the diff output.
>
> Modified: trunk/subversion/tests/cmdline/import_tests.py
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/tests/cmdline/import_tests.py?pathrev=20191&r1=20190&r2=20191
> ==============================================================================
> --- trunk/subversion/tests/cmdline/import_tests.py (original)
> +++ trunk/subversion/tests/cmdline/import_tests.py Tue Jun 20 11:06:49 2006
> @@ -337,14 +337,21 @@
> # -This is file test.dsp.
> # +This is file test.dsp.
> # +Extra line
> +
> + # eol styl of test.dsp is CRLF, so diff will use that too. Make sure we
> + # define CRLF in a platform independent way.
> + if os.name == 'nt':
> + crlf = '\n'
> + else:
> + crlf = '\r\n'
>
Should it not be(Or my eyes are wrong!!), windows line endings are
'\r\n' and unix(posix) ones are '\n' .
+ if os.name == 'nt':
+ crlf = '\r\n'
+ else:
+ crlf = '\n'
In anycase why not use os.linesep?
With regards
Kamesh Jayachandran
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 21 16:00:50 2006