Mercurial > hg
comparison hgext/convert/hg.py @ 8495:5b7596b142ad
convert: directly use nullid
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 18 May 2009 22:55:45 +0200 |
parents | e9e2a2c9b294 |
children | a58a95e523aa |
comparison
equal
deleted
inserted
replaced
8494:97184c58d0b8 | 8495:5b7596b142ad |
---|---|
129 nparents = len(parents) | 129 nparents = len(parents) |
130 if self.filemapmode and nparents == 1: | 130 if self.filemapmode and nparents == 1: |
131 m1node = self.repo.changelog.read(bin(parents[0]))[0] | 131 m1node = self.repo.changelog.read(bin(parents[0]))[0] |
132 parent = parents[0] | 132 parent = parents[0] |
133 | 133 |
134 if len(parents) < 2: parents.append("0" * 40) | 134 if len(parents) < 2: parents.append(nullid) |
135 if len(parents) < 2: parents.append("0" * 40) | 135 if len(parents) < 2: parents.append(nullid) |
136 p2 = parents.pop(0) | 136 p2 = parents.pop(0) |
137 | 137 |
138 text = commit.desc | 138 text = commit.desc |
139 extra = commit.extra.copy() | 139 extra = commit.extra.copy() |
140 if self.branchnames and commit.branch: | 140 if self.branchnames and commit.branch: |