[issue877] Commands producing diff should warn about creation or deletion of empty files

Jesse Glick mercurial-bugs at selenic.com
Fri Dec 14 19:42:37 CST 2007


New submission from Jesse Glick <jesse.glick at sun.com>:

$ 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.

----------
messages: 4620
nosy: jglick
priority: bug
status: unread
title: Commands producing diff should warn about creation or deletion of empty files

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue877>
____________________________________________________



More information about the Mercurial-devel mailing list