Mercurial > hg
diff tests/test-obsolete.t @ 34086: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 | ecc96506c49d |
line wrap: on
line diff
--- a/tests/test-obsolete.t Fri Sep 01 12:34:36 2017 -0700 +++ b/tests/test-obsolete.t Fri Sep 01 12:34:36 2017 -0700 @@ -1213,11 +1213,9 @@ > command = registrar.command(cmdtable) > @command(b"amendtransient",[], _('hg amendtransient [rev]')) > def amend(ui, repo, *pats, **opts): - > def commitfunc(ui, repo, message, match, opts): - > return repo.commit(message, repo['.'].user(), repo['.'].date(), match) > opts['message'] = 'Test' > opts['logfile'] = None - > cmdutil.amend(ui, repo, commitfunc, repo['.'], {}, pats, opts) + > cmdutil.amend(ui, repo, repo['.'], {}, pats, opts) > ui.write('%s\n' % repo.changelog.headrevs()) > EOF $ cat >> $HGRCPATH << EOF