# HG changeset patch # User Benoit Boissinot # Date 1187654528 -7200 # Node ID 6a1d2dd96b8e590db00da38515b6622796775383 # Parent ce4e67533723cea250e1ae36a4d7e069f01763b0 abort when adding a file in merged state diff -r ce4e67533723 -r 6a1d2dd96b8e mercurial/localrepo.py --- a/mercurial/localrepo.py Mon Aug 20 22:02:05 2007 +0200 +++ b/mercurial/localrepo.py Tue Aug 21 02:02:08 2007 +0200 @@ -995,7 +995,7 @@ 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)