mercurial/localrepo.py
changeset 5204 6a1d2dd96b8e
parent 5182 012dbf88b9b2
child 5205 212de429e000
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -995,7 +995,7 @@ class localrepository(repo.repository):
                 if not (stat.S_ISREG(st.st_mode) or stat.S_ISLNK(st.st_mode)):
                     self.ui.warn(_("%s not added: only files and symlinks "
                                    "supported currently\n") % f)
-                elif self.dirstate[f] in 'an':
+                elif self.dirstate[f] in 'amn':
                     self.ui.warn(_("%s already tracked!\n") % f)
                 else:
                     self.dirstate.add(f)