##// END OF EJS Templates
Change patch header as well as commit message with qrefresh -m or -l.
Brendan Cully -
r2745:1bac2bfe default
parent child Browse files
Show More
@@ -811,6 +811,16 b' class queue:'
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)
General Comments 0
You need to be logged in to leave comments. Login now