[issue1454] hg remove should warn when removing unversioned file
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!
title: hg remove should warn when removing unversioned file
Mercurial issue tracker <mercurial-bugs at selenic.com>
More information about the Mercurial-devel