-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep Target Branch Merge Strategy #77
Conversation
ping (+1 squashed commit) Squashed commits: [cb9de41] pong (+1 squashed commit) Squashed commits: [8761d29] ping
…target branch merge driver test Squashed commits: [59348a7] pong
Squashed commits: [f8e692a] half-ping
@@ -33,6 +33,10 @@ then | |||
TESTS_TO_RUN=`ls case*.sh` | |||
fi | |||
|
|||
if [ ${#TESTS_TO_RUN[@]} -eq 1 ]; then | |||
PARALLELIZE=0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Таким чином, якщо ми запустили рівно один тест, в нас будуть виводитись логи від тесту. By default логи в паралельному режимі вимкнені, щоб не отримувати вінегрет з виводу декількох тестів.
// Copyright © 2024 Readdle. All rights reserved. | ||
// | ||
|
||
#import "S7DefaultMergeStrategy.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут все один в один перенесене з MergeDriver. А там тепер є можливість перемикатися між стратегіями.
@@ -469,8 +311,8 @@ - (S7ConflictResolutionOption)resolveConflictBetweenOurVersion:(S7SubrepoDescrip | |||
" you can (m)erge, keep (l)ocal or keep (r)emote.\n" | |||
" what do you want to do? ", | |||
ourVersion.path.fileSystemRepresentation, | |||
[ourVersion.humanReadableRevisionAndBranchState cStringUsingEncoding:NSUTF8StringEncoding], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тепер тут окрім щось типу 1234affebd (main)
може писатися ще й коментар до SubrepoDesc, якщо він є.
Реально ми коментар ставимо в одному кейсі в Keep Target Branch strategy, бо там є неочевидне перекидання імені бранчі з release
на trunk
. Тоді там виходить щось типу:
What do you want to do?
Dependencies/ReaddleLib 1234affebd (main) (Originally from release branch.)
...
Add S7_MERGE_DRIVER_KEEP_TARGET_BRANCH to the merge driver