Show More
@@ -68,6 +68,7 b' from mercurial import (' | |||||
68 | ) |
|
68 | ) | |
69 | from mercurial.utils import ( |
|
69 | from mercurial.utils import ( | |
70 | procutil, |
|
70 | procutil, | |
|
71 | stringutil, | |||
71 | ) |
|
72 | ) | |
72 |
|
73 | |||
73 | cmdtable = {} |
|
74 | cmdtable = {} | |
@@ -328,6 +329,19 b' def writediffproperties(ctx, diff):' | |||||
328 | } |
|
329 | } | |
329 | callconduit(ctx.repo(), 'differential.setdiffproperty', params) |
|
330 | callconduit(ctx.repo(), 'differential.setdiffproperty', params) | |
330 |
|
331 | |||
|
332 | params = { | |||
|
333 | 'diff_id': diff[r'id'], | |||
|
334 | 'name': 'local:commits', | |||
|
335 | 'data': json.dumps({ | |||
|
336 | ctx.hex(): { | |||
|
337 | 'author': stringutil.person(ctx.user()), | |||
|
338 | 'authorEmail': stringutil.email(ctx.user()), | |||
|
339 | 'time': ctx.date()[0], | |||
|
340 | }, | |||
|
341 | }), | |||
|
342 | } | |||
|
343 | callconduit(ctx.repo(), 'differential.setdiffproperty', params) | |||
|
344 | ||||
331 | def createdifferentialrevision(ctx, revid=None, parentrevid=None, oldnode=None, |
|
345 | def createdifferentialrevision(ctx, revid=None, parentrevid=None, oldnode=None, | |
332 | olddiff=None, actions=None): |
|
346 | olddiff=None, actions=None): | |
333 | """create or update a Differential Revision |
|
347 | """create or update a Differential Revision |
General Comments 0
You need to be logged in to leave comments.
Login now