@@ -104,19 +104,21 @@ def regexp(str_regex):
104
104
'--use-merge-strategy' ,
105
105
action = 'store_true' ,
106
106
help = (
107
- 'Use git merge instead of git rebase (EXPERIMENTAL)\n '
108
- 'Enable if you use a workflow based on merge-commits and not linear history.\n '
107
+ 'Use git merge instead of git rebase to update the *source* branch (EXPERIMENTAL)\n '
108
+ 'If you need to use a strict no-rebase workflow (in most cases\n '
109
+ 'you don\' t want this, even if you configured gitlab to use merge requests\n '
110
+ 'to use merge commits on the *target* branch (the default).)'
109
111
),
110
112
)
111
- experimental_group .add_argument (
113
+ parser .add_argument (
112
114
'--add-tested' ,
113
115
action = 'store_true' ,
114
116
help = 'Add "Tested: marge-bot <$MR_URL>" for the final commit on branch after it passed CI.\n ' ,
115
117
)
116
- experimental_group .add_argument (
118
+ parser .add_argument (
117
119
'--batch' ,
118
120
action = 'store_true' ,
119
- help = 'Enable processing MRs in batches (EXPERIMENTAL) \n ' ,
121
+ help = 'Enable processing MRs in batches\n ' ,
120
122
)
121
123
parser .add_argument (
122
124
'--add-part-of' ,
@@ -187,6 +189,11 @@ def regexp(str_regex):
187
189
)
188
190
config = parser .parse_args (args )
189
191
192
+ if config .use_merge_strategy and config .batch :
193
+ raise MargeBotCliArgError ('--use-merge-strategy and --batch are currently mutually exclusive' )
194
+ if config .use_merge_strategy and config .add_tested :
195
+ raise MargeBotCliArgError ('--use-merge-strategy and --add-tested are currently mutually exclusive' )
196
+
190
197
cli_args = []
191
198
# pylint: disable=protected-access
192
199
for _ , (_ , value ) in parser ._source_to_settings .get (configargparse ._COMMAND_LINE_SOURCE_KEY , {}).items ():
0 commit comments