##// END OF EJS Templates
mq: write '# Parent ' lines with two spaces like export does (BC)...
Mads Kiilerich -
r22521:3f948469 default
parent child Browse files
Show More
@@ -150,7 +150,7 b' class patchheader(object):'
150 150 elif line.startswith("# Date "):
151 151 date = line[7:]
152 152 elif line.startswith("# Parent "):
153 parent = line[9:].lstrip()
153 parent = line[9:].lstrip() # handle double trailing space
154 154 elif line.startswith("# Branch "):
155 155 branch = line[9:]
156 156 elif line.startswith("# Node ID "):
@@ -232,7 +232,8 b' class patchheader(object):'
232 232 self.date = date
233 233
234 234 def setparent(self, parent):
235 if not self.updateheader(['# Parent '], parent):
235 if not (self.updateheader(['# Parent '], parent) or
236 self.updateheader(['# Parent '], parent)):
236 237 try:
237 238 patchheaderat = self.comments.index('# HG changeset patch')
238 239 self.comments.insert(patchheaderat + 1, '# Parent ' + parent)
General Comments 0
You need to be logged in to leave comments. Login now