1. Luke Plant
  2. histedit

Commits

Augie Fackler  committed eb86f82

Updated for new commit interface introduced in Mercurial revision 25e9c71b89de.

  • Participants
  • Parent commits ee24705
  • Branches default

Comments (0)

Files changed (1)

File __init__.py

View file
  • Ignore whitespace
     except Exception, inst:
         raise util.Abort(_('Fix up the change and run '
                            'hg histedit --continue'))
-    n = repo.commit(files, oldctx.description(), oldctx.user(), oldctx.date(),
+    n = repo.commit(text=oldctx.description(), user=oldctx.user(), date=oldctx.date(),
                     extra=oldctx.extra())
     return repo[n], [n, ], [oldctx.node(), ], []
 
     except Exception, inst:
         raise util.Abort(_('Fix up the change and run '
                            'hg histedit --continue'))
-    n = repo.commit(files, 'fold-temp-revision %s' % ha, oldctx.user(), oldctx.date(),
+    n = repo.commit(text='fold-temp-revision %s' % ha, user=oldctx.user(), date=oldctx.date(),
                     extra=oldctx.extra())
     return finishfold(ui, repo, ctx, oldctx, n, opts, [])
 
         [repo[r].description() for r in internalchanges] +
         [oldctx.description(), ])
     newmessage = ui.edit(newmessage, ui.username())
-    n = repo.commit(files, newmessage, ui.username(), max(ctx.date(), oldctx.date()),
+    n = repo.commit(text=newmessage, user=ui.username(), date=max(ctx.date(), oldctx.date()),
                     extra=oldctx.extra())
     return repo[n], [n, ], [oldctx.node(), ctx.node() ], [newnode, ] # xxx
 
             message = 'fold-temp-revision %s' % currentnode
         new = None
         if m or a or r or d:
-            new = repo.commit(set(m+a+r+d), message, oldctx.user(), oldctx.date(),
+            new = repo.commit(text=message, user=oldctx.user(), date=oldctx.date(),
                               extra=oldctx.extra())
 
         if action in ('e', 'edit', 'p', 'pick', ):