hgext/convert/hg.py
changeset 4939 cdd33a048289
parent 4873 28b23b9073a8
child 4965 4106dde15aed
equal deleted inserted replaced
4938:02b127749dc0 4939:cdd33a048289
    56         extra = {}
    56         extra = {}
    57         if commit.branch:
    57         if commit.branch:
    58             extra['branch'] = commit.branch
    58             extra['branch'] = commit.branch
    59         if commit.rev:
    59         if commit.rev:
    60             extra['convert_revision'] = commit.rev
    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)