You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Erik Huelsmann <eh...@gmail.com> on 2005/11/10 21:55:48 UTC
eol-style repository normal format: which is it?
Because I'm working on simplifying libsvn_wc, I'm working on
(de)translation routines. Wondering what the actual Repository Normal
Format for eol style is, I read:
http://svn.collab.net/repos/svn/trunk/notes/line-endings-and-keywords.txt
which says it is 1 out of 3 possibilities:
1) no eol-style set: do nothing
2) fixed eol-style set: translate (repairingly) to that style
3) native is set: translate to LF, fail on mixed eols
libsvn_wc implements this scheme in at least svn_wc_translated_file2().
But looking at libsvn_client/commit.c:108 (send_file_contents) [ at
http://hix.nu/subversion/lxr/source/subversion/libsvn_client/commit.c#108
], we have a different scheme.
So, which is it supposed to be?!
If send_file_contents is correct, then shouldn't libsvn_wc be adjusted?!
bye,
Erik.
Re: eol-style repository normal format: which is it?
Posted by Erik Huelsmann <eh...@gmail.com>.
On 10 Nov 2005 14:01:54 -0800, C. Michael Pilato <cm...@collab.net> wrote:
> Someone recently reported that very piece of code as a bug (issue #2433).
Fix committed in r17321.
bye,
Erik.
Re: eol-style repository normal format: which is it?
Posted by Erik Huelsmann <eh...@gmail.com>.
On 10 Nov 2005 14:01:54 -0800, C. Michael Pilato <cm...@collab.net> wrote:
> Someone recently reported that very piece of code as a bug (issue #2433).
>
> Erik Huelsmann <eh...@gmail.com> writes:
>
> > Because I'm working on simplifying libsvn_wc, I'm working on
> > (de)translation routines. Wondering what the actual Repository Normal
> > Format for eol style is, I read:
> >
> > http://svn.collab.net/repos/svn/trunk/notes/line-endings-and-keywords.txt
> >
> > which says it is 1 out of 3 possibilities:
> >
> > 1) no eol-style set: do nothing
> > 2) fixed eol-style set: translate (repairingly) to that style
> > 3) native is set: translate to LF, fail on mixed eols
> >
> > libsvn_wc implements this scheme in at least svn_wc_translated_file2().
> >
> > But looking at libsvn_client/commit.c:108 (send_file_contents) [ at
> > http://hix.nu/subversion/lxr/source/subversion/libsvn_client/commit.c#108
> > ], we have a different scheme.
> >
> > So, which is it supposed to be?!
> >
> > If send_file_contents is correct, then shouldn't libsvn_wc be adjusted?!
> >
> > bye,
> >
> >
> > Erik.
Ok. Looking into this a bit more, I see why only import has this
problem: only import uses send_file_contents. All other code uses
svn_wc_translated_file, which does this correctly.
Anyway, thanks for the pointer, I think I can safely change the code
to 'do what svn_wc_translated_file does' and maybe call the issue
fixed.
bye,
Erik.
Re: eol-style repository normal format: which is it?
Posted by "C. Michael Pilato" <cm...@collab.net>.
Someone recently reported that very piece of code as a bug (issue #2433).
Erik Huelsmann <eh...@gmail.com> writes:
> Because I'm working on simplifying libsvn_wc, I'm working on
> (de)translation routines. Wondering what the actual Repository Normal
> Format for eol style is, I read:
>
> http://svn.collab.net/repos/svn/trunk/notes/line-endings-and-keywords.txt
>
> which says it is 1 out of 3 possibilities:
>
> 1) no eol-style set: do nothing
> 2) fixed eol-style set: translate (repairingly) to that style
> 3) native is set: translate to LF, fail on mixed eols
>
> libsvn_wc implements this scheme in at least svn_wc_translated_file2().
>
> But looking at libsvn_client/commit.c:108 (send_file_contents) [ at
> http://hix.nu/subversion/lxr/source/subversion/libsvn_client/commit.c#108
> ], we have a different scheme.
>
> So, which is it supposed to be?!
>
> If send_file_contents is correct, then shouldn't libsvn_wc be adjusted?!
>
> bye,
>
>
> Erik.
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Distributed Development On Demand
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org