Skip to content
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

Merged
merged 11 commits into from
Feb 13, 2024
Merged

Conversation

zrxq
Copy link
Contributor

@zrxq zrxq commented Feb 13, 2024

Add S7_MERGE_DRIVER_KEEP_TARGET_BRANCH to the merge driver

@zrxq zrxq requested a review from pastey February 13, 2024 13:40
@pastey pastey changed the title Untitled Pull Request Keep Target Branch Merge Strategy Feb 13, 2024
@@ -33,6 +33,10 @@ then
TESTS_TO_RUN=`ls case*.sh`
fi

if [ ${#TESTS_TO_RUN[@]} -eq 1 ]; then
PARALLELIZE=0
Copy link
Contributor

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"
Copy link
Contributor

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],
Copy link
Contributor

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.)
 ...

@pastey pastey merged commit 21ccfd9 into main Feb 13, 2024
2 checks passed
@pastey pastey deleted the keep-target-pair-programming branch February 13, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants