It turns out the hg export command does not include zero size files in the generated diff and this was overlooked.