equal
deleted
inserted
replaced
272 |
272 |
273 If actions is not None, they will be appended to the transaction. |
273 If actions is not None, they will be appended to the transaction. |
274 """ |
274 """ |
275 repo = ctx.repo() |
275 repo = ctx.repo() |
276 if oldnode: |
276 if oldnode: |
277 diffopts = mdiff.diffopts(git=True, context=1) |
277 diffopts = mdiff.diffopts(git=True, context=32767) |
278 oldctx = repo.unfiltered()[oldnode] |
278 oldctx = repo.unfiltered()[oldnode] |
279 neednewdiff = (getdiff(ctx, diffopts) != getdiff(oldctx, diffopts)) |
279 neednewdiff = (getdiff(ctx, diffopts) != getdiff(oldctx, diffopts)) |
280 else: |
280 else: |
281 neednewdiff = True |
281 neednewdiff = True |
282 |
282 |