[issue3183] wrong diff stat for patch queues

hynekcer bugs at mercurial.selenic.com
Wed Jan 4 21:49:29 CST 2012


New submission from hynekcer <hynek at sdb.cz>:

If some lines start with "++" or "--", which is typical for mq patches
extension and such line is changed, then is the statistics wrong.

-- Example:
hg init
echo "++x" >plus
echo "--x" >minus
hg add >/dev/null
hg ci -m init -u nobody
echo "++y" >plus
echo "--y" >minus
hg diff --stat
-- output
 minus |  1 +
 plus  |  1 -
 2 files changed, 1 insertions(+), 1 deletions(-)
-- expected output
 minus |  1 +-
 plus  |  1 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---

----------
messages: 18494
nosy: hynekcer
priority: bug
status: unread
title: wrong diff stat for patch queues

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


More information about the Mercurial-devel mailing list