rm: complain more about removing added files
authorMatt Mackall <mpm@selenic.com>
Mon, 10 Dec 2007 10:24:21 -0600
changeset 5636 7e6ddde68a23
parent 5635 0c608a8d9c5f
child 5637 bdb81d46b2fb
rm: complain more about removing added files
mercurial/commands.py
--- a/mercurial/commands.py	Mon Dec 10 10:24:14 2007 -0600
+++ b/mercurial/commands.py	Mon Dec 10 10:24:21 2007 -0600
@@ -2029,6 +2029,7 @@
                 forget.append(abs)
                 continue
             reason = _('has been marked for add (use -f to force removal)')
+            exact = 1 # force the message
         elif abs not in repo.dirstate:
             reason = _('is not managed')
         elif opts['after'] and not exact and abs not in deleted: