Mercurial > hg
diff i18n/check-translation.py @ 23924:0db6810e84e8 stable
diff: use binary diff when copy source is binary
When a binary source has been copied or renamed into a non-binary
file, we don't check whether the copy source was binary. There is a
code comment explaining that a git mode will be forced anyway in order
to capture the copy record (i.e. losedatafn() will be called). This is
true, but forcing git mode is not the only effect binary files have:
when git mode was already requested, we use the binary-ness to tell us
whether to use a regular unified diff or a git binary diff. The user
sees this as a "Binary file $file has changed" instead of the binary
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 17 Jan 2015 15:03:41 -0800 |
parents | 35c2ea4ca26f |
children | 8fb92ff63ccf |