##// END OF EJS Templates
abort when adding a file in merged state
Benoit Boissinot -
r5206:6a1d2dd9 default
parent child Browse files
Show More
@@ -995,7 +995,7 b' class localrepository(repo.repository):'
995 if not (stat.S_ISREG(st.st_mode) or stat.S_ISLNK(st.st_mode)):
995 if not (stat.S_ISREG(st.st_mode) or stat.S_ISLNK(st.st_mode)):
996 self.ui.warn(_("%s not added: only files and symlinks "
996 self.ui.warn(_("%s not added: only files and symlinks "
997 "supported currently\n") % f)
997 "supported currently\n") % f)
998 elif self.dirstate[f] in 'an':
998 elif self.dirstate[f] in 'amn':
999 self.ui.warn(_("%s already tracked!\n") % f)
999 self.ui.warn(_("%s already tracked!\n") % f)
1000 else:
1000 else:
1001 self.dirstate.add(f)
1001 self.dirstate.add(f)
General Comments 0
You need to be logged in to leave comments. Login now