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

Re: Ascii/binary detection.

From: <kfogel_at_collab.net>
Date: 2001-08-08 21:36:02 CEST

"Rick Price" <rprice@opentext.com> writes:
> Why not just ask the user to explicitly specify the type if there is any
> confusion?
>
> This is what cvsgui does, and it works well for me.

We can (and should); but there still has to be an automated guesser
for situations where asking the user for input is not appropriate.

Large imports can sometimes be such a situation, even when the user is
present, just because of the sheer number of files and the user's
desire to do other stuff that day.

-K

> ----- Original Message -----
> From: "Branko �ibej" <brane@xbc.nu>
> To: "Alan Shutko" <ats@acm.org>
> Cc: <cmpilato@collab.net>; <dev@subversion.tigris.org>
> Sent: Wednesday, August 01, 2001 4:27 PM
> Subject: Re: Ascii/binary detection.
>
>
> > Alan Shutko wrote:
> >
> > >cmpilato@collab.net writes:
> > >
> > >>The point is that some work needs to be done to create the
> > >>Subversion Binariness Heuristic, and your suggestions are good ones.
> > >>
> > >
> > >I don't have any specific suggestions here, but it would be good when
> > >deciding the heuristic to take a bunch of non-english text files
> > >(esp. CJK in various encodings) and try to make sure they aren't
> > >always seen as binary.
> > >
> > I agree. But if we can't be sure, we have to default to binary, so that
> > even if we're wrong, the file doesn't get munged during commit.
> >
> >
> > >Extremely long lines also needs some judgement, because of people who
> > >create text files where they use a newline per paragraph.
> > >
> > True, that's why I suggested checking line length as a last resort. If
> > we're cautious and mark the file binary unless we're sure it's not,
> > there's no harm done.
> >
> >
> > Brane
> >
> > --
> > Brane �ibej
> > home: <brane_at_xbc.nu> http://www.xbc.nu/brane/
> > work: <branko.cibej_at_hermes.si> http://www.hermes-softlab.com/
> > ACM : <brane_at_acm.org> http://www.acm.org/
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: dev-help@subversion.tigris.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:35 2006

This is an archived mail posted to the Subversion Dev mailing list.