Merge branch 'bk/p4-prepare-p4-only-fix'
The "--prepare-p4-only" option is supposed to stop after replaying one changeset, but kept going (by mistake?) * bk/p4-prepare-p4-only-fix: git-p4.py: fix --prepare-p4-only error with multiple commits
This commit is contained in:
@ -2537,11 +2537,12 @@ class P4Submit(Command, P4UserMap):
|
|||||||
ok = self.applyCommit(commit)
|
ok = self.applyCommit(commit)
|
||||||
if ok:
|
if ok:
|
||||||
applied.append(commit)
|
applied.append(commit)
|
||||||
else:
|
if self.prepare_p4_only:
|
||||||
if self.prepare_p4_only and i < last:
|
if i < last:
|
||||||
print("Processing only the first commit due to option" \
|
print("Processing only the first commit due to option" \
|
||||||
" --prepare-p4-only")
|
" --prepare-p4-only")
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
if i < last:
|
if i < last:
|
||||||
# prompt for what to do, or use the option/variable
|
# prompt for what to do, or use the option/variable
|
||||||
if self.conflict_behavior == "ask":
|
if self.conflict_behavior == "ask":
|
||||||
|
Reference in New Issue
Block a user