Show More
@@ -371,10 +371,10 b' def writediffproperties(ctx, diff):' | |||
|
371 | 371 | b'diff_id': diff[b'id'], |
|
372 | 372 | b'name': b'hg:meta', |
|
373 | 373 | b'data': json.dumps({ |
|
374 |
|
|
|
375 |
|
|
|
376 |
|
|
|
377 |
|
|
|
374 | u'user': encoding.unifromlocal(ctx.user()), | |
|
375 | u'date': u'{:.0f} {}'.format(*ctx.date()), | |
|
376 | u'node': encoding.unifromlocal(ctx.hex()), | |
|
377 | u'parent': encoding.unifromlocal(ctx.p1().hex()), | |
|
378 | 378 | }), |
|
379 | 379 | } |
|
380 | 380 | callconduit(ctx.repo(), b'differential.setdiffproperty', params) |
@@ -383,10 +383,11 b' def writediffproperties(ctx, diff):' | |||
|
383 | 383 | b'diff_id': diff[b'id'], |
|
384 | 384 | b'name': b'local:commits', |
|
385 | 385 | b'data': json.dumps({ |
|
386 | ctx.hex(): { | |
|
387 |
|
|
|
388 |
|
|
|
389 |
|
|
|
386 | encoding.unifromlocal(ctx.hex()): { | |
|
387 | u'author': encoding.unifromlocal(stringutil.person(ctx.user())), | |
|
388 | u'authorEmail': encoding.unifromlocal( | |
|
389 | stringutil.email(ctx.user())), | |
|
390 | u'time': u'{:.0f}'.format(ctx.date()[0]), | |
|
390 | 391 | }, |
|
391 | 392 | }), |
|
392 | 393 | } |
General Comments 0
You need to be logged in to leave comments.
Login now