[issue1330] "hg add && hg ci" shows added files as changed

Maxim Vuets mercurial-bugs at selenic.com
Wed Oct 8 14:42:26 CDT 2008


New submission from Maxim Vuets <maxim.vuets at gmail.com>:

"hg ci" w/o "-m <text>" shows a log of changed files, you know.
The bug is that this log shows added files as changed.

Following example illustrates the bug. I expect to see "HG: added newfile"
instead of "HG: changed newfile".
~$ hg init hg-test
~$ cd hg-test
hg-test$ touch goodfile badfile
hg-test$ hg add
adding badfile
adding goodfile
hg-test$ hg ci -m 'Initial commit'
hg-test$ echo content >goodfile 
hg-test$ hg rm badfile 
hg-test$ touch newfile
hg-test$ hg add
adding newfile
hg-test$ hg st
M goodfile
A newfile
R badfile
hg-test$ hg --config ui.editor=cat ci

HG: Enter commit message.  Lines beginning with 'HG:' are removed.
HG: --
HG: user: Maxim Vuets <maxim.vuets at xxxxxxxxx>
HG: branch 'default'
HG: changed goodfile
HG: changed newfile
HG: removed badfile
transaction abort!
rollback completed
abort: empty commit message

----------
messages: 7343
nosy: mvuets
priority: bug
status: unread
title: "hg add && hg ci" shows added files as changed
topic: ui

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



More information about the Mercurial-devel mailing list