Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 5207:212de429e000
make hg add of a removed file unremove the file
if a file was removed, hg add shouldn't mark the file
as added, but as normal
see issue683
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 21 Aug 2007 02:13:32 +0200 |
parents | 6a1d2dd96b8e |
children | 90d9ec0dc69d |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Aug 21 02:02:08 2007 +0200 +++ b/mercurial/localrepo.py Tue Aug 21 02:13:32 2007 +0200 @@ -997,6 +997,8 @@ "supported currently\n") % f) elif self.dirstate[f] in 'amn': self.ui.warn(_("%s already tracked!\n") % f) + elif self.dirstate[f] == 'r': + self.dirstate.normaldirty(f) else: self.dirstate.add(f) finally: