Shelve removes(!) whitespace-only changes with ignorewsamount=True
Created originally on Bitbucket by nikratio (Nikolaus Rath)
Setup as follows:
{{{ [0] vostro:~/tmp$ cat ~/.hgrc [diff] git=True ignorewsamount=True ignoreblanklines=True
[0] vostro:~/tmp$ cat > testfile this file will have whitespace changes
bla bla some placeholder to make sure we get two diff blocks
as well as
will
things.
[0] vostro:/tmp$ hg add testfile
adding testfile
[0] vostro:/tmp$ hg commit -m test testfile
testfile
committed changeset 0:67f5f784ce14
[0] vostro:~/tmp$ cat > testfile
this file
will
have whitespace
changes
bla bla some placeholder to make sure we get two diff blocks
as well as will bla things. }}}
Now start thg and try to shelve the changes.
The first problem is that thg doesn't display the indentation change. This is inconvenient, but not necessary a major problem.
However, if you now shelve and unshelve the one change that thg shows, this actually silently removes the whitespace only change in the working copy!