##// END OF EJS Templates
commit: leverage cmdutil.check_incompatible_arguments()...
Martin von Zweigbergk -
r46359:450e17e5 default
parent child Browse files
Show More
@@ -2015,8 +2015,7 b' def _docommit(ui, repo, *pats, **opts):'
2015
2015
2016 opts = pycompat.byteskwargs(opts)
2016 opts = pycompat.byteskwargs(opts)
2017 if opts.get(b'subrepos'):
2017 if opts.get(b'subrepos'):
2018 if opts.get(b'amend'):
2018 cmdutil.check_incompatible_arguments(opts, b'subrepos', [b'amend'])
2019 raise error.Abort(_(b'cannot amend with --subrepos'))
2020 # Let --subrepos on the command line override config setting.
2019 # Let --subrepos on the command line override config setting.
2021 ui.setconfig(b'ui', b'commitsubrepos', True, b'commit')
2020 ui.setconfig(b'ui', b'commitsubrepos', True, b'commit')
2022
2021
General Comments 0
You need to be logged in to leave comments. Login now