comparison 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
comparison
equal deleted inserted replaced
34102:e8a7c1a0565a 34103:a39dce4a76b8
3024 else: 3024 else:
3025 return False 3025 return False
3026 else: 3026 else:
3027 return f not in ctx2.manifest() 3027 return f not in ctx2.manifest()
3028 3028
3029 # TODO: remove the commitfunc parameter because it is no longer used 3029 def amend(ui, repo, old, extra, pats, opts):
3030 def amend(ui, repo, commitfunc, old, extra, pats, opts):
3031 # avoid cycle context -> subrepo -> cmdutil 3030 # avoid cycle context -> subrepo -> cmdutil
3032 from . import context 3031 from . import context
3033 3032
3034 # amend will reuse the existing user if not specified, but the obsolete 3033 # amend will reuse the existing user if not specified, but the obsolete
3035 # marker creation requires that the current user's name is specified. 3034 # marker creation requires that the current user's name is specified.