You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Grant Edwards <gr...@visi.com> on 2007/09/22 16:37:10 UTC

line-ending weirdness with "svn-diff"

If I check out a working copy of a project, "touch" a file, and
then do an "svn diff" on that file, it shows every line in the
file has changed.

The file has svn:eol-style == LF, and working copy has
line-feed endings.  When I tell "svn diff" to use an external
diff command, the referece file (the non-touched one) that's
passed to it has CR/LF line endings.

If I look at .svn/text-base/<filename>, it has CR/LF line
endings.

What's going on?

-- 
Grant Edwards                   grante             Yow!  Don't hit me!! I'm in
                                  at               the Twilight Zone!!!
                               visi.com            

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: line-ending weirdness with "svn-diff"

Posted by Grant Edwards <gr...@visi.com>.
On 2007-09-22, Grant Edwards <gr...@visi.com> wrote:

> If I check out a working copy of a project, "touch" a file, and
> then do an "svn diff" on that file, it shows every line in the
> file has changed.
>
> The file has svn:eol-style == LF, and working copy has
> line-feed endings.  When I tell "svn diff" to use an external
> diff command, the referece file (the non-touched one) that's
> passed to it has CR/LF line endings.
>
> If I look at .svn/text-base/<filename>, it has CR/LF line
> endings.
>
> What's going on?

I've come to the conclusion that the files in the svn
repository have CR/LF line endings.  That's probably a result
of their having been originally in VSS.

-- 
Grant Edwards                   grante             Yow!  ALFRED JARRY! Say
                                  at               something about th' DEATH
                               visi.com            of DISCO!!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org