equal
deleted
inserted
replaced
52 if len(parents) < 2: parents.append("0" * 40) |
52 if len(parents) < 2: parents.append("0" * 40) |
53 p2 = parents.pop(0) |
53 p2 = parents.pop(0) |
54 |
54 |
55 text = commit.desc |
55 text = commit.desc |
56 extra = {} |
56 extra = {} |
57 try: |
57 if commit.branch: |
58 extra["branch"] = commit.branch |
58 extra['branch'] = commit.branch |
59 except AttributeError: |
59 if commit.rev: |
60 pass |
60 extra['convert_revision'] = commit.rev |
61 |
61 |
62 while parents: |
62 while parents: |
63 p1 = p2 |
63 p1 = p2 |
64 p2 = parents.pop(0) |
64 p2 = parents.pop(0) |
65 a = self.repo.rawcommit(files, text, commit.author, commit.date, |
65 a = self.repo.rawcommit(files, text, commit.author, commit.date, |
66 hg.bin(p1), hg.bin(p2), extra=extra) |
66 hg.bin(p1), hg.bin(p2), extra=extra) |