Skip to content

Commit 74ef868

Browse files
committed
in case problem cant be solved by accepting multiple changes ask user as well
1 parent ddd713a commit 74ef868

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

rtcFunctions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ def collect_changes_to_accept_to_avoid_conflicts(changewhichcantacceptedallone,
226226

227227
def retryacceptincludingnextchangesets(self, change, changes):
228228
changestoskip = 0
229+
issucessful = False
229230
changestoaccept = ImportHandler.collect_changes_to_accept_to_avoid_conflicts(change, changes)
230231
amountofchangestoaccept = len(changestoaccept)
231232

@@ -236,10 +237,11 @@ def retryacceptincludingnextchangesets(self, change, changes):
236237
toaccept = changestoaccept[0:index + 1] # accept least possible amount of changes
237238
if Changes.accept(self.config, self.acceptlogpath, *toaccept) is 0:
238239
changestoskip = len(toaccept) - 1 # initialchange shouldnt be skipped
240+
issucessful = True
239241
break
240242
else:
241243
Changes.discard(self.config, *toaccept) # revert initial state
242-
else:
244+
if not issucessful:
243245
self.is_user_aborting(change)
244246
return changestoskip
245247

0 commit comments

Comments
 (0)