Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 34103:a39dce4a76b8
cmdutil: remove redundant commitfunc parameter in amend (API)
Since the redundant commit during the amend has been been removed, there is no
need for commit callback function in amend now. Therefore, this commit removes
the unused parameter "commmitfunc" which was being used for this purpose.
Test Plan:
Ensured that all the tests pass
Differential Revision: https://phab.mercurial-scm.org/D635
author | Saurabh Singh <singhsrb@fb.com> |
---|---|
date | Fri, 01 Sep 2017 12:34:36 -0700 |
parents | e8a7c1a0565a |
children | ae95853c250a |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Fri Sep 01 12:34:36 2017 -0700 +++ b/mercurial/cmdutil.py Fri Sep 01 12:34:36 2017 -0700 @@ -3026,8 +3026,7 @@ else: return f not in ctx2.manifest() -# TODO: remove the commitfunc parameter because it is no longer used -def amend(ui, repo, commitfunc, old, extra, pats, opts): +def amend(ui, repo, old, extra, pats, opts): # avoid cycle context -> subrepo -> cmdutil from . import context