Mercurial > public > mercurial-scm > hg
diff hgext/convert/filemap.py @ 11673:a2f11188e2d2
convert: handle closed branch heads in hg-hg conversion (issue2185)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 25 Jul 2010 17:18:35 -0500 |
parents | 33010ff1fd6f |
children | 7fefef3ce791 |
line wrap: on
line diff
--- a/hgext/convert/filemap.py Sun Jul 25 17:10:32 2010 -0500 +++ b/hgext/convert/filemap.py Sun Jul 25 17:18:35 2010 -0500 @@ -298,7 +298,9 @@ self.origparents[rev] = parents - if len(mparents) < 2 and not self.wanted(rev, wp): + closed = 'close' in self.commits[rev].extra + + if len(mparents) < 2 and not closed and not self.wanted(rev, wp): # We don't want this revision. # Update our state and tell the convert process to map this # revision to the same revision its parent as mapped to.