equal
deleted
inserted
replaced
66 url as urlmod, |
66 url as urlmod, |
67 util, |
67 util, |
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 = {} |
74 command = registrar.command(cmdtable) |
75 command = registrar.command(cmdtable) |
75 |
76 |
322 'data': json.dumps({ |
323 'data': json.dumps({ |
323 'user': ctx.user(), |
324 'user': ctx.user(), |
324 'date': '%d %d' % ctx.date(), |
325 'date': '%d %d' % ctx.date(), |
325 'node': ctx.hex(), |
326 'node': ctx.hex(), |
326 'parent': ctx.p1().hex(), |
327 'parent': ctx.p1().hex(), |
|
328 }), |
|
329 } |
|
330 callconduit(ctx.repo(), 'differential.setdiffproperty', params) |
|
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 }, |
327 }), |
341 }), |
328 } |
342 } |
329 callconduit(ctx.repo(), 'differential.setdiffproperty', params) |
343 callconduit(ctx.repo(), 'differential.setdiffproperty', params) |
330 |
344 |
331 def createdifferentialrevision(ctx, revid=None, parentrevid=None, oldnode=None, |
345 def createdifferentialrevision(ctx, revid=None, parentrevid=None, oldnode=None, |