Mercurial > hg
changeset 8495:5b7596b142ad
convert: directly use nullid
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 18 May 2009 22:55:45 +0200 |
parents | 97184c58d0b8 |
children | a21605de1509 e35d844f5afc |
files | hgext/convert/hg.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/hg.py Mon May 18 13:54:21 2009 -0500 +++ b/hgext/convert/hg.py Mon May 18 22:55:45 2009 +0200 @@ -131,8 +131,8 @@ m1node = self.repo.changelog.read(bin(parents[0]))[0] parent = parents[0] - if len(parents) < 2: parents.append("0" * 40) - if len(parents) < 2: parents.append("0" * 40) + if len(parents) < 2: parents.append(nullid) + if len(parents) < 2: parents.append(nullid) p2 = parents.pop(0) text = commit.desc