Add automatic binary file detection to diff and export
Based on a patch by Fuming Wang
- add util.binary which decides whether a file is binary if it has any NUL
characters in the first 1K.
- teach mdiff.unidiff to print "binary file <x> has changed" for binary files
- add text flag to cause unidiff and dodiff to treat all files as text
- add -a and --text flags (like diff(1)) to hg diff and export
- update docs
<table class="changelogEntry parity#parity#">
<tr>
<th class="age">#date|age# ago:</th>
<th class="firstline">#desc|firstline|escape#</th>
</tr>
<tr>
<th class="changesetRev">changeset #rev#:</th>
<td class="changesetNode"><a href="?cmd=changeset;node=#node#">#node|short#</a></td>
</tr>
#parent#
#changelogtag#
<tr>
<th class="author">author:</th>
<td class="author">#author|obfuscate#</td>
</tr>
<tr>
<th class="date">date:</th>
<td class="date">#date|date#</td>
</tr>
<tr>
<th class="files"><a href="?cmd=manifest;manifest=#manifest#;path=/">files</a>:</th>
<td class="files">#files#</td>
</tr>
</table>