info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Diff treats files as text after they have been flagged -kb


From: Eric Siegerman
Subject: Re: Diff treats files as text after they have been flagged -kb
Date: Mon, 8 Sep 2003 13:11:50 -0400
User-agent: Mutt/1.2.5i

On Fri, Sep 05, 2003 at 02:49:25PM -0400, Jack Dodds wrote:
> I used cvs admin to attach the -kb flag to all the .WPJ and
> .TGT files both in the repository and the sandbox, expecting
> this to fix the problem.

Are you sure it affected the sandbox?  See what "cvs stat" says
about the files in question.  I don't use WinCVS, but in vanilla
CVS, "cvs admin -kb" *only* affects the repo.  You then have to
"cvs update -A" to get the new setting into your sandbox.

Another possibility is that "cvs diff" might ignore the -kb
setting, and just do whatever vanilla "diff" would do given the
same files; which is, to do the diff as text-mode if the files
"look like" text, and as binary-mode if they "look like" binary.

I really don't know whether this is the case, however -- the code
(1.11.5) looks as though it *should* use the file's -k setting,
but a quick test indicated the opposite: I set a plain-text file
to -kb; did "cvs update -A", and verified it with "cvs stat";
modified the file; ran "cvs diff", and saw a text-mode diff.

> I could of course export the whole project and import it into a
> completely new repository,

If the first of my guesses is correct, that'd be drastic
overkill; if the second is, it'd be completely pointless.

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        address@hidden
|  |  /
When I came back around from the dark side, there in front of me would
be the landing area where the crew was, and the Earth, all in the view
of my window. I couldn't help but think that there in front of me was
all of humanity, except me.
        - Michael Collins, Apollo 11 Command Module Pilot





reply via email to

[Prev in Thread] Current Thread [Next in Thread]