Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 1645:c6ffedc4f11b
add removed files to the changelog file list
- this should allow better detection of removed file
when walking in the history (like hg log)
it doesn't help for the fast path of hg log where
we only look at the filelog
- users of the changelog file list shouldn't assume
anymore that the file still exist (anyway it won't
be found in the manifest like in 5ecf05541e11)
- fix the tests (some hashes changed)
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sun, 29 Jan 2006 08:38:31 +1300 |
parents | 3f214984fd9e |
children | d529cdc0a3ee |
comparison
equal
deleted
inserted
replaced
1644:e7e6504c4989 | 1645:c6ffedc4f11b |
---|---|
449 if not edittext.rstrip(): | 449 if not edittext.rstrip(): |
450 return None | 450 return None |
451 text = edittext | 451 text = edittext |
452 | 452 |
453 user = user or self.ui.username() | 453 user = user or self.ui.username() |
454 n = self.changelog.add(mn, changed, text, tr, p1, p2, user, date) | 454 n = self.changelog.add(mn, changed + remove, text, tr, p1, p2, user, date) |
455 tr.close() | 455 tr.close() |
456 | 456 |
457 self.dirstate.setparents(n) | 457 self.dirstate.setparents(n) |
458 self.dirstate.update(new, "n") | 458 self.dirstate.update(new, "n") |
459 self.dirstate.forget(remove) | 459 self.dirstate.forget(remove) |