[p4] p4 diff2 and suppressing EOL differences
Ivey, William
william_ivey at bmc.com
Sun Jan 7 09:56:24 PST 2007
No, the EOLs on the server match whatever is submitted
when the client's EOL option is "unix". Since we have
a mixed shop, and most of our build is on unix, we set
all clients to "unix" (we run cygwin on Windows in default
EOL mode so it needs to see unix files too). The policy
is that any file that is not Windows-specific (such as a
.bat file) must be unix-style.
The problem is that some people's editors appear to be
converting unix to dos by default. (Or in at least one
case, the other way - oddly, the same guy has managed to
do both at times.)
So, a unix file is branched, gets edited and turned into
a dos file, then submitted as such. Now p4 diff2 shows a
content difference. There is no line-by-line diff output
if -dw is used so I could analyze that, but it's tedious
and makes the simple command line rather useless.
-Wm
> -----Original Message-----
> From: Dave Lewis [mailto:dlewis78731 at gmail.com]
> Sent: Saturday, January 06, 2007 9:49 AM
> To: Ivey, William
> Cc: perforce-user at perforce.com
> Subject: Re: [p4] p4 diff2 and suppressing EOL differences
>
>
> I *thought* that all text files were kept with the same line endings
> in the depot, and line endings were adjusted when syncing to clients.
>
> So, there is usually no problem with diff2 unless line endings
> have gotten messed up in one of the files.
>
> I usually fix that when ever I find them.
>
> dave
>
>
> On 1/5/07, Ivey, William <william_ivey at bmc.com> wrote:
> > Has anyone found a way to get p4 diff2 to completely ignore end of
> > line differences when comparing files?
> >
> > -db and -dw suppress the line-by-line diff, but it stil
> says there is
> > a content difference. (I don't really want to ignore all whitespace,
> > but I can live with that.)
> >
> > -Wm
> >
> > _______________________________________________
> > perforce-user mailing list - perforce-user at perforce.com
> > http://maillist.perforce.com/mailman/listinfo/perforce-user
> >
>
>
More information about the perforce-user
mailing list