mercurial/commands.py
changeset 34103 a39dce4a76b8
parent 34100 08346a8fa65f
child 34354 87a6be5b29f4
--- a/mercurial/commands.py	Fri Sep 01 12:34:36 2017 -0700
+++ b/mercurial/commands.py	Fri Sep 01 12:34:36 2017 -0700
@@ -1550,15 +1550,7 @@
         if not obsolete.isenabled(repo, obsolete.createmarkersopt):
             cmdutil.checkunfinished(repo)
 
-        # commitfunc is used only for temporary amend commit by cmdutil.amend
-        def commitfunc(ui, repo, message, match, opts):
-            return repo.commit(message,
-                               opts.get('user') or old.user(),
-                               opts.get('date') or old.date(),
-                               match,
-                               extra=extra)
-
-        node = cmdutil.amend(ui, repo, commitfunc, old, extra, pats, opts)
+        node = cmdutil.amend(ui, repo, old, extra, pats, opts)
         if node == old.node():
             ui.status(_("nothing changed\n"))
             return 1