hgext/convert/__init__.py
changeset 4518 3e4aa4c9efe4
parent 4516 96d8a56d4ef9
child 4520 ce1fed4a5b94
equal deleted inserted replaced
4517:5371a213b0f4 4518:3e4aa4c9efe4
   175                     if l == "\n": #
   175                     if l == "\n": #
   176                         state = 0
   176                         state = 0
   177                         p = [self.parent[id]]
   177                         p = [self.parent[id]]
   178                         if id == "1":
   178                         if id == "1":
   179                             p = []
   179                             p = []
       
   180                         if branch == "HEAD":
       
   181                             branch = ""
   180                         c = commit(author=author, date=date, parents=p,
   182                         c = commit(author=author, date=date, parents=p,
   181                                    desc=log, branch=branch)
   183                                    desc=log, branch=branch)
   182                         self.changeset[id] = c
   184                         self.changeset[id] = c
   183                         self.files[id] = files
   185                         self.files[id] = files
   184                     else:
   186                     else: