mq: some improvements to header rewriting (closes #690)
Tested with qrefresh -m against the mm series.
Fix theoretical issue in filecommit.
If the file was copied, we don't want to reuse the original entry.
I think this is mostly a theoretical issue - when there are copies,
fp1 == nullid, so it's very unlikely that the fl.cmp(fp1, t) would
think the file was unmodified. In any case, if there was a copy,
we should forcefully create a new entry.
Avoid adding to the changelog executable files added by the second parent.
This was a regression introduced by
b51a8138292a.
avoid double slash problem mentioned in
issue695