equal
deleted
inserted
replaced
809 cparents = repo.changelog.parents(top) |
809 cparents = repo.changelog.parents(top) |
810 patchparent = self.qparents(repo, top) |
810 patchparent = self.qparents(repo, top) |
811 message, comments, user, date, patchfound = self.readheaders(patch) |
811 message, comments, user, date, patchfound = self.readheaders(patch) |
812 |
812 |
813 patchf = self.opener(patch, "w") |
813 patchf = self.opener(patch, "w") |
|
814 msg = msg.rstrip() |
|
815 if msg: |
|
816 if comments: |
|
817 # Remove existing message. |
|
818 ci = 0 |
|
819 for mi in range(len(message)): |
|
820 while message[mi] != comments[ci]: |
|
821 ci += 1 |
|
822 del comments[ci] |
|
823 comments.append(msg) |
814 if comments: |
824 if comments: |
815 comments = "\n".join(comments) + '\n\n' |
825 comments = "\n".join(comments) + '\n\n' |
816 patchf.write(comments) |
826 patchf.write(comments) |
817 |
827 |
818 tip = repo.changelog.tip() |
828 tip = repo.changelog.tip() |