Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dirstate.py @ 6110:81e20e01d465
status: put added files that have disappeared in the deleted list
This gives the user an indication that something went wrong with this file:
$ hg add foo
$ rm foo
$ hg status foo
! foo
Fixes issue212.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Thu, 14 Feb 2008 18:08:16 -0200 |
parents | 218d5b9aa466 |
children | 09847b90beae |
line wrap: on
line diff
--- a/mercurial/dirstate.py Thu Feb 14 18:08:16 2008 -0200 +++ b/mercurial/dirstate.py Thu Feb 14 18:08:16 2008 -0200 @@ -568,7 +568,7 @@ nonexistent = False # XXX: what to do with file no longer present in the fs # who are not removed in the dirstate ? - if nonexistent and type_ in "nm": + if nonexistent and type_ in "nma": dadd(fn) continue # check the common case first