[issue1454] hg remove should warn when removing unversioned file

Kang Seonghoon mercurial-bugs at selenic.com
Thu Jan 1 12:17:32 CST 2009


New submission from Kang Seonghoon <public+hgissue at mearie.org>:

Once I have not added some files intentionally, I forgot it and removed them
with hg rm. When I realized that files are disappeared from older logs I got
confused and wondered if this is hg's bug.

I think hg should properly warn the user in this situation, though hg st shows
'?' instead of 'R' then -- which was, unfortunately, unnoticed to me. I don't
know how other VCS or DVCS behaves, but at least Subversion has such warning.

How to reproduce:

~$ mkdir remove-unversioned
~$ cd remove-unversioned/
~/remove-unversioned$ hg init
~/remove-unversioned$ touch unversioned
~/remove-unversioned$ hg rm unversioned    # <-- no warning!
~/remove-unversioned$

----------
messages: 8320
nosy: lifthrasiir
priority: wish
status: unread
title: hg remove should warn when removing unversioned file
topic: ui

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



More information about the Mercurial-devel mailing list