##// END OF EJS Templates
hgweb: add parents to json-log (issue5074)...
av6 -
r28709:94494031 default
parent child Browse files
Show More
@@ -341,6 +341,7 b' def changelistentry(web, ctx, tmpl):'
341 341
342 342 entry = commonentry(repo, ctx)
343 343 entry.update(
344 allparents=lambda **x: parents(ctx),
344 345 parent=lambda **x: parents(ctx, rev - 1),
345 346 child=lambda **x: children(ctx, rev + 1),
346 347 changelogtag=showtags,
@@ -11,7 +11,8 b" changelistentry = '\\{"
11 11 "desc": {desc|utf8|json},
12 12 "bookmarks": [{join(bookmarks%changelistentryname, ", ")}],
13 13 "tags": [{join(tags%changelistentryname, ", ")}],
14 "user": {author|utf8|json}
14 "user": {author|utf8|json},
15 "parents": [{join(allparents%changesetparent, ", ")}]
15 16 }'
16 17 changelistentryname = '{name|utf8|json}'
17 18 changeset = '\{
@@ -175,6 +175,10 b' changelog/ shows information about sever'
175 175 ],
176 176 "desc": "merge test-branch into default",
177 177 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
178 "parents": [
179 "ceed296fe500c3fac9541e31dad860cb49c89e45",
180 "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
181 ],
178 182 "tags": [
179 183 "tip"
180 184 ],
@@ -188,6 +192,9 b' changelog/ shows information about sever'
188 192 ],
189 193 "desc": "another commit in test-branch",
190 194 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
195 "parents": [
196 "6ab967a8ab3489227a83f80e920faa039a71819f"
197 ],
191 198 "tags": [],
192 199 "user": "test"
193 200 },
@@ -199,6 +206,9 b' changelog/ shows information about sever'
199 206 ],
200 207 "desc": "create test branch",
201 208 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
209 "parents": [
210 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
211 ],
202 212 "tags": [],
203 213 "user": "test"
204 214 },
@@ -212,6 +222,9 b' changelog/ shows information about sever'
212 222 ],
213 223 "desc": "create tag2",
214 224 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45",
225 "parents": [
226 "f2890a05fea49bfaf9fb27ed5490894eba32da78"
227 ],
215 228 "tags": [],
216 229 "user": "test"
217 230 },
@@ -223,6 +236,9 b' changelog/ shows information about sever'
223 236 ],
224 237 "desc": "another commit to da/foo",
225 238 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
239 "parents": [
240 "93a8ce14f89156426b7fa981af8042da53f03aa0"
241 ],
226 242 "tags": [
227 243 "tag2"
228 244 ],
@@ -236,6 +252,9 b' changelog/ shows information about sever'
236 252 ],
237 253 "desc": "create tag",
238 254 "node": "93a8ce14f89156426b7fa981af8042da53f03aa0",
255 "parents": [
256 "78896eb0e102174ce9278438a95e12543e4367a7"
257 ],
239 258 "tags": [],
240 259 "user": "test"
241 260 },
@@ -247,6 +266,9 b' changelog/ shows information about sever'
247 266 ],
248 267 "desc": "move foo",
249 268 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
269 "parents": [
270 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
271 ],
250 272 "tags": [
251 273 "tag1"
252 274 ],
@@ -262,6 +284,9 b' changelog/ shows information about sever'
262 284 ],
263 285 "desc": "modify da/foo",
264 286 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
287 "parents": [
288 "f8bbb9024b10f93cdbb8d940337398291d40dea8"
289 ],
265 290 "tags": [],
266 291 "user": "test"
267 292 },
@@ -273,6 +298,9 b' changelog/ shows information about sever'
273 298 ],
274 299 "desc": "modify foo",
275 300 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
301 "parents": [
302 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
303 ],
276 304 "tags": [],
277 305 "user": "test"
278 306 },
@@ -284,6 +312,7 b' changelog/ shows information about sever'
284 312 ],
285 313 "desc": "initial",
286 314 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
315 "parents": [],
287 316 "tags": [],
288 317 "user": "test"
289 318 }
@@ -307,6 +336,9 b' changelog/{revision} shows information s'
307 336 ],
308 337 "desc": "modify foo",
309 338 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
339 "parents": [
340 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
341 ],
310 342 "tags": [],
311 343 "user": "test"
312 344 },
@@ -318,6 +350,7 b' changelog/{revision} shows information s'
318 350 ],
319 351 "desc": "initial",
320 352 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
353 "parents": [],
321 354 "tags": [],
322 355 "user": "test"
323 356 }
@@ -341,6 +374,10 b' shortlog/ shows information about a set '
341 374 ],
342 375 "desc": "merge test-branch into default",
343 376 "node": "cc725e08502a79dd1eda913760fbe06ed7a9abc7",
377 "parents": [
378 "ceed296fe500c3fac9541e31dad860cb49c89e45",
379 "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
380 ],
344 381 "tags": [
345 382 "tip"
346 383 ],
@@ -354,6 +391,9 b' shortlog/ shows information about a set '
354 391 ],
355 392 "desc": "another commit in test-branch",
356 393 "node": "ed66c30e87eb65337c05a4229efaa5f1d5285a90",
394 "parents": [
395 "6ab967a8ab3489227a83f80e920faa039a71819f"
396 ],
357 397 "tags": [],
358 398 "user": "test"
359 399 },
@@ -365,6 +405,9 b' shortlog/ shows information about a set '
365 405 ],
366 406 "desc": "create test branch",
367 407 "node": "6ab967a8ab3489227a83f80e920faa039a71819f",
408 "parents": [
409 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
410 ],
368 411 "tags": [],
369 412 "user": "test"
370 413 },
@@ -378,6 +421,9 b' shortlog/ shows information about a set '
378 421 ],
379 422 "desc": "create tag2",
380 423 "node": "ceed296fe500c3fac9541e31dad860cb49c89e45",
424 "parents": [
425 "f2890a05fea49bfaf9fb27ed5490894eba32da78"
426 ],
381 427 "tags": [],
382 428 "user": "test"
383 429 },
@@ -389,6 +435,9 b' shortlog/ shows information about a set '
389 435 ],
390 436 "desc": "another commit to da/foo",
391 437 "node": "f2890a05fea49bfaf9fb27ed5490894eba32da78",
438 "parents": [
439 "93a8ce14f89156426b7fa981af8042da53f03aa0"
440 ],
392 441 "tags": [
393 442 "tag2"
394 443 ],
@@ -402,6 +451,9 b' shortlog/ shows information about a set '
402 451 ],
403 452 "desc": "create tag",
404 453 "node": "93a8ce14f89156426b7fa981af8042da53f03aa0",
454 "parents": [
455 "78896eb0e102174ce9278438a95e12543e4367a7"
456 ],
405 457 "tags": [],
406 458 "user": "test"
407 459 },
@@ -413,6 +465,9 b' shortlog/ shows information about a set '
413 465 ],
414 466 "desc": "move foo",
415 467 "node": "78896eb0e102174ce9278438a95e12543e4367a7",
468 "parents": [
469 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
470 ],
416 471 "tags": [
417 472 "tag1"
418 473 ],
@@ -428,6 +483,9 b' shortlog/ shows information about a set '
428 483 ],
429 484 "desc": "modify da/foo",
430 485 "node": "8d7c456572acf3557e8ed8a07286b10c408bcec5",
486 "parents": [
487 "f8bbb9024b10f93cdbb8d940337398291d40dea8"
488 ],
431 489 "tags": [],
432 490 "user": "test"
433 491 },
@@ -439,6 +497,9 b' shortlog/ shows information about a set '
439 497 ],
440 498 "desc": "modify foo",
441 499 "node": "f8bbb9024b10f93cdbb8d940337398291d40dea8",
500 "parents": [
501 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
502 ],
442 503 "tags": [],
443 504 "user": "test"
444 505 },
@@ -450,6 +511,7 b' shortlog/ shows information about a set '
450 511 ],
451 512 "desc": "initial",
452 513 "node": "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e",
514 "parents": [],
453 515 "tags": [],
454 516 "user": "test"
455 517 }
General Comments 0
You need to be logged in to leave comments. Login now