$ hg init
$ touch x
$ hg add
adding x
$ hg stat
A x
$ hg di
$
It is misleading for 'hg di' to print no output at all when in fact you have a
modification. Likely confusing for new users trying out Hg by creating empty
dummy files. And some source bases have a legitimate use for empty files; you
would want some notification in diff output (or at least stderr) that they were
being manipulated.
Commands which produce diffs - hg diff, log -p, etc. - should probably issue a
warning if a file addition or deletion was omitted from the diff due to the file
being empty.
|