List Info

Thread: --lf obsolete?




--lf obsolete?
user name
2006-08-28 02:47:27
On 8/27/06, David Somers <dsomersomz13.com> wrote:
> Yongwei Wu wrote:
>
> > On 8/27/06, David Somers <dsomersomz13.com> wrote:
> >> Glen Starrett wrote:
> >> > It's reasonable to keep some
functionality for backward ability, but I
> >> > believe there was some sort of issue with
that.
> >>
> >> You could screw your repository if you didn't
know what you are doing.
> >
> > What is the issue? And how can I screw my
repository?
> >
> > My worst experience in this respect was that I
wrongly committed a DOS
> > file as a UNIX file, and CVS thought all lines
were changed. But that
> > was reversible and correctible, so I do not think
it `screwed' the
> > repository.
>
> OK. Perhaps 'screwed' was too strong (since you can
recover the file)...
>
> It is mainly the issue that you commit with the wrong
line endings... you
> get into trouble later on since some applications
can't cope with being
> given wrong line endings (e.g. in the past I've had
Windows applications
> crash when I've fed them files with unix lineends
instead of Windows
> linenends). IIRC, Visual Studio 6 is very sensitive
about lineendings in
> prj files.

It is really not that serious, and I strongly suggest drop
the new
warning. The same thing can happen if the DOS files are
committed
under Linux... I really saw such things happen when people
who were
supposed to work under Linux really copied files from
Windows machines
to Linux ones by scp (not FTP, which could correct the line
ending).

One must know what one is doing. `--lf' is not a default
option: when
one uses it, it is exactly like copying the file to a *NIX
machine and
doing things there. No one will blame you if he/she screwed
things.

A doubt here (cannot test right away): If I use `k+L' to
check out the
files, and I make the files into DOS line endings
accidentally, won't
the same things happen?

Best regards,

Yongwei
-- 
Wu Yongwei
URL: http://wyw.dcweb.cn/
_______________________________________________
cvsnt mailing list
cvsntcvsnt.org
h
ttp://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
--lf obsolete?
user name
2006-08-31 13:14:31
On 8/28/06, Yongwei Wu <wuyongweigmail.com> wrote:
> On 8/27/06, David Somers <dsomersomz13.com> wrote:
> > Yongwei Wu wrote:
> > > My worst experience in this respect was that
I wrongly committed a DOS
> > > file as a UNIX file, and CVS thought all
lines were changed. But that
> > > was reversible and correctible, so I do not
think it `screwed' the
> > > repository.
> >
> > OK. Perhaps 'screwed' was too strong (since you
can recover the file)...
> >
> > It is mainly the issue that you commit with the
wrong line endings... you
> > get into trouble later on since some applications
can't cope with being
> > given wrong line endings (e.g. in the past I've
had Windows applications
> > crash when I've fed them files with unix lineends
instead of Windows
> > linenends). IIRC, Visual Studio 6 is very
sensitive about lineendings in
> > prj files.
>
> It is really not that serious, and I strongly suggest
drop the new
> warning. The same thing can happen if the DOS files are
committed
> under Linux... I really saw such things happen when
people who were
> supposed to work under Linux really copied files from
Windows machines
> to Linux ones by scp (not FTP, which could correct the
line ending).
>
> One must know what one is doing. `--lf' is not a
default option: when
> one uses it, it is exactly like copying the file to a
*NIX machine and
> doing things there. No one will blame you if he/she
screwed things.
>
> A doubt here (cannot test right away): If I use `k+L'
to check out the
> files, and I make the files into DOS line endings
accidentally, won't
> the same things happen?

I tested `k+L' and confirmed it did *not* do what I want. I
want
something like `--lf': the checked-out files are like in a
UNIX
sandbox, both on check-out and on check-in (when there is
keyword
expansion). I want the files to remain in UNIX line endings.
Unfortunately this is not what `k+L' does.

So I would like to request making `--lf' have the old
behaviour, both
from the backward compatibility point of view, and from the
functionality point of view.

Best regards,

Yongwei

-- 
Wu Yongwei
URL: http://wyw.dcweb.cn/
_______________________________________________
cvsnt mailing list
cvsntcvsnt.org
h
ttp://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )