Bug in 'hg diff'
Bela Babik
teki321 at gmail.com
Mon Jul 23 18:09:41 CDT 2007
From: http://www.opengroup.org/onlinepubs/009695399/utilities/diff.html
"Cause any amount of white space at the end of a line to be treated as
a single <newline> (that is, the white-space characters preceding the
<newline> are ignored) and other strings of white-space characters,
not including <newline>s, to compare equal."
1->2 is not a change in amount, but from 0 to 1 definitely is (you
didn't have any whitespace originally on the beginning of the line).
--
teki
On 7/24/07, Paul Sargent <psarge at gmail.com> wrote:
>
> On 23 Jul 2007, at 23:24, Will Maier wrote:
>
> > On Mon, Jul 23, 2007 at 11:57:51PM +0200, Guido Ostkamp wrote:
> >> it appears the '-b' option (ignore whitespace changes) of 'hg
> >> diff' is not working at all.
> >
> > You're misreading -b:
> >
> > $ hg help diff
> > [...]
> > -b --ignore-space-change ignore changes in the amount of
> > white space
> > ^^^^^^
>
> Isn't a '\n' changing into '\n ' a change in the "amount" of white
> space?
>
> or if you only want to walk about changes within lines....
>
> Isn't changing zero spaces into two spaces a change in the "amount"
> of white space?
>
> <annoying pedant mode off>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
More information about the Mercurial
mailing list