hgext/convert/hg.py
changeset 8495 5b7596b142ad
parent 8456 e9e2a2c9b294
child 8596 a58a95e523aa
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: