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

RE: Re: Determining TrotoiseSVN version from a script.

From: Bob Cunningham <bcunningham_at_sandel.com>
Date: 2007-08-06 21:03:34 CEST

Alf Christophersen wrote:
> Bob Cunningham wrote:
>> Cygwin has full access to Windows file systems, and can launch any
>> Windows executable. I frequently do this manually under Bash, or
>> automatically via any of a multitude of Cygwin tools (there are
>> hundreds of them).
>>
>>
>
> But, as with all other Linux-implementations, end of line is #10 I
> have tried it to write files, but they are just a long line read with
> a Windows program. (Unless you use a program that understands those
> line ends)

As with any cross-platform tools, you do need to be careful which tools
you use, and how you use them.

Most modern editors detect and maintain line styles on the fly.
Unfortunately, it is easy to confuse them when line styles are mixed
within a single file.

Fortunately, Cygwin provides the dox2unix and unix2dos commands to
ensure the line style is the one desired throughout the entire file.
This is, in essence, what the svn:native property does for you: Think
of it as being a flag to ensure the "right" one is called, no matter
what line style is used within the repository file itself.

These tools are heavily used when Windows and Linux systems (tools,
files, and file systems) are first mixed, but their use tends to
decrease toward zero over time.

-BobC

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Mon Aug 6 21:01:44 2007

This is an archived mail posted to the TortoiseSVN Users mailing list.