##// END OF EJS Templates
changelog: parse description last...
Gregory Szorc -
r28494:63653147 default
parent child Browse files
Show More
@@ -184,9 +184,6 b' class changelogrevision(object):'
184 184 #
185 185 # changelog v0 doesn't use extra
186 186
187 doublenl = text.index('\n\n')
188 self._rawdesc = text[doublenl + 2:]
189
190 187 nl1 = text.index('\n')
191 188 self._rawmanifest = text[0:nl1]
192 189
@@ -198,10 +195,13 b' class changelogrevision(object):'
198 195
199 196 # The list of files may be empty. Which means nl3 is the first of the
200 197 # double newline that precedes the description.
201 if nl3 == doublenl:
198 if text[nl3 + 1] == '\n':
202 199 self._rawfiles = None
200 self._rawdesc = text[nl3 + 2:]
203 201 else:
202 doublenl = text.index('\n\n', nl3 + 1)
204 203 self._rawfiles = text[nl3 + 1:doublenl]
204 self._rawdesc = text[doublenl + 2:]
205 205
206 206 return self
207 207
General Comments 0
You need to be logged in to leave comments. Login now