Mercurial > public > mercurial-scm > hg
diff mercurial/localrepo.py @ 3377:9fe62e2db71d
rawcommit: add removed files to the changelog file list
patch by tonfa.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Thu, 12 Oct 2006 19:26:06 -0300 |
parents | 929d04962115 |
children | 028fff46a4ac |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu Oct 12 14:19:34 2006 -0700 +++ b/mercurial/localrepo.py Thu Oct 12 19:26:06 2006 -0300 @@ -510,6 +510,7 @@ m1 = self.manifest.read(c1[0]).copy() m2 = self.manifest.read(c2[0]) changed = [] + removed = [] if orig_parent == p1: update_dirstate = 1 @@ -530,13 +531,15 @@ del m1[f] if update_dirstate: self.dirstate.forget([f]) + removed.append(f) except: # deleted from p2? pass mnode = self.manifest.add(m1, tr, linkrev, c1[0], c2[0]) user = user or self.ui.username() - n = self.changelog.add(mnode, changed, text, tr, p1, p2, user, date) + n = self.changelog.add(mnode, changed + removed, text, + tr, p1, p2, user, date) tr.close() if update_dirstate: self.dirstate.setparents(n, nullid)