##// END OF EJS Templates
releasenotes: add more tests for formatting and merging of release notes
Rishabh Madan -
r32779:2510823c default
parent child Browse files
Show More
@@ -254,3 +254,73 b' Now add bullet points to sections having'
254 -------------
254 -------------
255
255
256 * Short summary of fix 3
256 * Short summary of fix 3
257
258 Multiple 'Other Changes' sub-sections for every section
259
260 $ hg init multiple-otherchanges
261 $ cd multiple-otherchanges
262
263 $ touch fix1
264 $ hg -q commit -A -l - << EOF
265 > commit 1
266 >
267 > .. fix:: Title of First Fix
268 >
269 > First paragraph of fix 1.
270 > EOF
271
272 $ touch feature1
273 $ hg -q commit -A -l - << EOF
274 > commit 2
275 >
276 > .. feature:: Title of First Feature
277 >
278 > First paragraph of feature 1.
279 > EOF
280
281 $ touch feature2
282 $ hg -q commit -A -l - << EOF
283 > commit 3
284 >
285 > .. feature::
286 >
287 > Short summary of feature 2.
288 > EOF
289
290 $ touch fix2
291 $ hg -q commit -A -l - << EOF
292 > commit 4
293 >
294 > .. fix::
295 >
296 > Short summary of fix 2
297 > EOF
298
299 $ hg releasenotes -r 'all()' $TESTTMP/relnotes-multiple-otherchanges
300 $ cat $TESTTMP/relnotes-multiple-otherchanges
301 New Features
302 ============
303
304 Title of First Feature
305 ----------------------
306
307 First paragraph of feature 1.
308
309 Other Changes
310 -------------
311
312 * Short summary of feature 2.
313
314 Bug Fixes
315 =========
316
317 Title of First Fix
318 ------------------
319
320 First paragraph of fix 1.
321
322 Other Changes
323 -------------
324
325 * Short summary of fix 2
326
@@ -110,3 +110,54 b" Doing it again won't add another section"
110 This describes a feature from a commit message.
110 This describes a feature from a commit message.
111
111
112 $ cd ..
112 $ cd ..
113
114 Bullets don't merge properly
115
116 $ hg init bullets
117 $ cd bullets
118 $ touch fix1
119 $ hg -q commit -A -l - << EOF
120 > commit 1
121 >
122 > .. fix::
123 >
124 > this is fix1.
125 > EOF
126
127 $ touch fix2
128 $ hg -q commit -A -l - << EOF
129 > commit 2
130 >
131 > .. fix::
132 >
133 > this is fix2.
134 > EOF
135
136 $ hg releasenotes -r 'all()' $TESTTMP/relnotes-bullet-problem
137 $ cat $TESTTMP/relnotes-bullet-problem
138 Bug Fixes
139 =========
140
141 * this is fix1.
142
143 * this is fix2.
144 $ touch fix3
145 $ hg -q commit -A -l - << EOF
146 > commit 3
147 >
148 > .. fix::
149 >
150 > this is fix3.
151 > EOF
152
153 $ hg releasenotes -r . $TESTTMP/relnotes-bullet-problem
154 $ cat $TESTTMP/relnotes-bullet-problem
155 Bug Fixes
156 =========
157
158 * this is fix1.
159
160 this is fix2.
161
162 * this is fix3.
163
General Comments 0
You need to be logged in to leave comments. Login now